Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigKeyPrefix = "/chat/config/" RestartKey = "restart" EnableConfigCenterKey = "enable-config-center" Enable = "enable" Disable = "disable" )
Variables ¶
View Source
var (
ShutDowns []func() error
)
Functions ¶
func RegisterShutDown ¶
func RegisterShutDown(shutDown ...func() error)
Types ¶
type ConfigManager ¶
type ConfigManager struct {
// contains filtered or unexported fields
}
func NewConfigManager ¶
func NewConfigManager(client *clientv3.Client, configNames []string) *ConfigManager
func (*ConfigManager) Watch ¶
func (c *ConfigManager) Watch(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.