MCPcopy Create free account
hub / github.com/cloudbase/garm / watcher

Struct watcher

database/watcher/watcher.go:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70type watcher struct {
71 producers map[string]*producer
72 consumers map[string]*consumer
73
74 mux sync.Mutex
75 closed bool
76 quit chan struct{}
77 ctx context.Context
78}
79
80func (w *watcher) RegisterProducer(ctx context.Context, id string) (common.Producer, error) {
81 w.mux.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected