MCPcopy
hub / github.com/marmotedu/iam / IWatcher

Interface IWatcher

internal/watcher/watcher/registry.go:17–21  ·  view source on GitHub ↗

IWatcher is the interface for watchers.

Source from the content-addressed store, hash-verified

15
16// IWatcher is the interface for watchers.
17type IWatcher interface {
18 Init(ctx context.Context, rs *redsync.Mutex, config interface{}) error
19 Spec() string
20 cron.Job
21}
22
23var (
24 registryLock = new(sync.Mutex)

Callers 2

addWatchersMethod · 0.65
addWatchersMethod · 0.65

Implementers 2

taskWatcherinternal/watcher/watcher/task/watcher.
cleanWatcherinternal/watcher/watcher/clean/watcher

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…