package watcher
import "github.com/google/certificate-transparency-go/watcher"
Package watcher holds tools for loglist-files versioning and updates propagation.
Index ¶
- type Diff
- func NewDiff(ctx context.Context, path string, isPathURL bool, checkInterval time.Duration, events chan<- DiffEvent) *Diff
- func (d *Diff) GetSyncedData() []byte
- type DiffEvent
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.
Source Files ¶
- Version
- v1.1.1
- Published
- Oct 6, 2020
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 11 hours ago –
Tools for package owners.