Documentation
¶
Index ¶
- Constants
- Variables
- func CaptureSnapshots(ctx context.Context, repos []string) map[string]Snapshot
- func CollectMessages(ctx context.Context, repos []string, previous map[string]Snapshot) ([]string, map[string]Snapshot)
- func DiscoverWatchRepos(workspaceDir string) []string
- func FormatMessage(path string, status FileChangeStatus, stat FileDiffStat) string
- type Emitter
- type FileChangeStatus
- type FileDiffStat
- type Lease
- type RunGuard
- type Snapshot
Constants ¶
View Source
const CallbackPrefix = "[file_change] "
Variables ¶
View Source
var SyntheticGuard = NewRunGuard()
Functions ¶
func CaptureSnapshots ¶
func CollectMessages ¶
func DiscoverWatchRepos ¶
func FormatMessage ¶
func FormatMessage(path string, status FileChangeStatus, stat FileDiffStat) string
Types ¶
type FileChangeStatus ¶
type FileChangeStatus int
const ( FileChangeStatusUnknown FileChangeStatus = iota FileChangeStatusModified FileChangeStatusAdded FileChangeStatusDeleted )
type FileDiffStat ¶
type RunGuard ¶
type RunGuard struct {
// contains filtered or unexported fields
}
func NewRunGuard ¶
func NewRunGuard() *RunGuard
type Snapshot ¶
type Snapshot map[string]FileDiffStat
Click to show internal directories.
Click to hide internal directories.