| 26 | ) |
| 27 | |
| 28 | type 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 | |
| 80 | var ErrClosedTopom = errors.New("use of closed topom") |
| 81 |
nothing calls this directly
no outgoing calls
no test coverage detected