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

Method Watch

internal/storage/storage.go:212–212  ·  view source on GitHub ↗

Watch watches relation tuple changes from the storage.

(ctx context.Context, tenantID, snap string)

Source from the content-addressed store, hash-verified

210type Watcher interface {
211 // Watch watches relation tuple changes from the storage.
212 Watch(ctx context.Context, tenantID, snap string) (<-chan *base.DataChanges, <-chan error)
213}
214
215type NoopWatcher struct{}

Callers 3

watch_test.goFile · 0.65
watch_test.goFile · 0.65
WatchMethod · 0.65

Implementers 7

watchClientpkg/pb/base/v1/service_grpc.pb.go
UnimplementedWatchServerpkg/pb/base/v1/service_grpc.pb.go
NoopWatcherinternal/storage/storage.go
Watchinternal/storage/postgres/watch.go
Watchinternal/storage/memory/watch.go
WatchServerinternal/servers/watch_server.go
HealthServerinternal/servers/health_server.go

Calls

no outgoing calls

Tested by

no test coverage detected