MCPcopy
hub / github.com/CodisLabs/codis / Topom

Struct Topom

pkg/topom/topom.go:28–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26)
27
28type Topom struct {
29 mu sync.Mutex
30
31 xauth string
32 model *models.Topom
33 store *models.Store
34 cache struct {
35 hooks list.List
36 slots []*models.SlotMapping
37 group map[int]*models.Group
38 proxy map[string]*models.Proxy
39
40 sentinel *models.Sentinel
41 }
42
43 exit struct {
44 C chan struct{}
45 }
46
47 config *Config
48 online bool
49 closed bool
50
51 ladmin net.Listener
52
53 action struct {
54 redisp *redis.Pool
55
56 interval atomic2.Int64
57 disabled atomic2.Bool
58
59 progress struct {
60 status atomic.Value
61 }
62 executor atomic2.Int64
63 }
64
65 stats struct {
66 redisp *redis.Pool
67
68 servers map[string]*RedisStats
69 proxies map[string]*ProxyStats
70 }
71
72 ha struct {
73 redisp *redis.Pool
74
75 monitor *redis.Sentinel
76 masters map[int]string
77 }
78}
79
80var ErrClosedTopom = errors.New("use of closed topom")
81

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected