package watcher

import "github.com/google/certificate-transparency-go/watcher"

Package watcher holds tools for loglist-files versioning and updates propagation.

Index

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.

Source Files

diff.go

Version
v1.1.0
Published
Nov 14, 2019
Platform
js/wasm
Imports
7 packages
Last checked
11 hours ago

Tools for package owners.