Documentation ¶
Index ¶
- Constants
- type ConfigMgr
- func (v *ConfigMgr) Apply(ctx context.Context, operTypes []int32, datas [][]byte, ...) (err error)
- func (c *ConfigMgr) Delete(ctx context.Context, key string) (err error)
- func (v *ConfigMgr) Flush(ctx context.Context) error
- func (c *ConfigMgr) Get(ctx context.Context, key string) (val string, err error)
- func (v *ConfigMgr) GetModuleName() string
- func (s *ConfigMgr) LoadData(ctx context.Context) error
- func (v *ConfigMgr) NotifyLeaderChange(ctx context.Context, leader uint64, host string)
- func (c *ConfigMgr) Set(ctx context.Context, key, value string) (err error)
- func (v *ConfigMgr) SetModuleName(module string)
- func (c *ConfigMgr) SetRaftServer(raftServer raftserver.RaftServer)
- type ConfigMgrAPI
Constants ¶
View Source
const ( OperTypeSetConfig = iota + 1 OperTypeDeleteConfig )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMgr ¶
type ConfigMgr struct {
// contains filtered or unexported fields
}
func (*ConfigMgr) GetModuleName ¶
func (*ConfigMgr) NotifyLeaderChange ¶
Switch manager work when leader change
func (*ConfigMgr) SetModuleName ¶
func (*ConfigMgr) SetRaftServer ¶
func (c *ConfigMgr) SetRaftServer(raftServer raftserver.RaftServer)
Click to show internal directories.
Click to hide internal directories.