Help us shape the future of Go! Take the 2026 Go Developer Survey

watcher

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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

func (d *Diff) GetSyncedData() []byte

GetSyncedData provides acces to Diff data.

type DiffEvent

type DiffEvent struct {
	Diffs []diffmatchpatch.Diff
	Err   error
}

DiffEvent refelects diff/error detection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL