MCPcopy
hub / github.com/autobase-tech/autobase / clusterWatcher

Struct clusterWatcher

console/service/internal/watcher/cluster_watcher.go:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25type clusterWatcher struct {
26 db storage.IStorage
27 isRun bool
28 log zerolog.Logger
29 cfg *configuration.Config
30 patroniCli patroni.IClient
31
32 ctx context.Context
33 done context.CancelFunc
34 wg sync.WaitGroup
35}
36
37func NewServerWatcher(db storage.IStorage, patroniCli patroni.IClient, cfg *configuration.Config) ClusterWatcher {
38 return &clusterWatcher{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected