MCPcopy Create free account
hub / github.com/Permify/permify / NewWatcher

Function NewWatcher

internal/storage/memory/watch.go:17–21  ·  view source on GitHub ↗

NewWatcher - Creates a new Watcher

(database *db.Memory)

Source from the content-addressed store, hash-verified

15
16// NewWatcher - Creates a new Watcher
17func NewWatcher(database *db.Memory) *Watch {
18 return &Watch{
19 database: database,
20 }
21}
22
23// Watch - Watches for changes in the repository.
24func (r *Watch) Watch(_ context.Context, _, _ string) (<-chan *base.DataChanges, <-chan error) {

Callers 1

watch_test.goFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected