MCPcopy
hub / github.com/Place1/wg-access-server / Watcher

Interface Watcher

internal/storage/contracts.go:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23type Watcher interface {
24 OnAdd(cb Callback)
25 OnDelete(cb Callback)
26 OnReconnect(func())
27 EmitAdd(device *Device)
28 EmitDelete(device *Device)
29}
30
31type Callback func(device *Device)
32

Callers 8

StartSyncMethod · 0.65
StartSyncMethod · 0.65
StartSyncMethod · 0.65
OnReconnectMethod · 0.65
SaveMethod · 0.65
SaveMethod · 0.65
DeleteMethod · 0.65
DeleteMethod · 0.65

Implementers 2

InProcessWatcherinternal/storage/inprocesswatcher.go
PgWatcherinternal/storage/pgwatcher.go

Calls

no outgoing calls

Tested by

no test coverage detected