Documentation ¶
Overview ¶
Package watcher holds tools for loglist-files versioning and updates propagation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
type Diff struct {
// contains filtered or unexported fields
}
Diff regularly check data at path provided, notifies if changes detected.
func NewDiff ¶
func NewDiff(ctx context.Context, path string, isPathURL bool, checkInterval time.Duration, events chan<- DiffEvent) *Diff
NewDiff is factory for Diff.
func (*Diff) GetSyncedData ¶
GetSyncedData provides acces to Diff data.
type DiffEvent ¶
type DiffEvent struct { Diffs []diffmatchpatch.Diff Err error }
DiffEvent refelects diff/error detection.
Click to show internal directories.
Click to hide internal directories.