watcher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher struct {
	// contains filtered or unexported fields
}

func New

func New() *Watcher

func (*Watcher) AfterTransaction

func (w *Watcher) AfterTransaction(err error) error

func (*Watcher) BeforeCommit

func (w *Watcher) BeforeCommit(tx bolted.WriteTx) error

func (*Watcher) Closed

func (w *Watcher) Closed() error

Closed TODO: add closing of the database semantics

func (*Watcher) CreateMap

func (w *Watcher) CreateMap(tx bolted.WriteTx, path string) error

func (*Watcher) Delete

func (w *Watcher) Delete(tx bolted.WriteTx, path string) error

func (*Watcher) Opened

func (w *Watcher) Opened(b *bolted.Bolted) error

func (*Watcher) Put

func (w *Watcher) Put(tx bolted.WriteTx, path string, newValue []byte) error

func (*Watcher) Start

func (w *Watcher) Start(c bolted.WriteTx) error

func (*Watcher) WatchForChanges

func (w *Watcher) WatchForChanges(ctx context.Context, path string, cb func(c bolted.ReadTx) error) error

Jump to

Keyboard shortcuts

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