etcd

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

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 BuildKey

func BuildKey(s string) string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL