Versions in this module Expand all Collapse all v0 v0.2.0 May 30, 2024 v0.1.0 Nov 20, 2023 Changes in this version + const EtcdDefaultClientPath + const EtcdDefaultConfigPrefix + const EtcdDefaultNode + const EtcdDefaultServerPath + const EtcdDefaultTimeout + func AllocateUniqueID() int64 + type Client interface + ClientConfigParam func(cpc *ConfigParamConfig, cfs ...CustomFunction) (Key, error) + DeregisterConfig func(key string, uniqueId int64) + RegisterConfigCallback func(ctx context.Context, key string, clientId int64, ...) + ServerConfigParam func(cpc *ConfigParamConfig, cfs ...CustomFunction) (Key, error) + SetParser func(ConfigParser) + func NewClient(opts Options) (Client, error) + type ConfigParamConfig struct + Category string + ClientServiceName string + ServerServiceName string + type ConfigParser interface + Decode func(data string, config interface{}) error + type CustomFunction func(*Key) + type Key struct + Path string + Prefix string + type Options struct + ClientPathFormat string + ConfigParser ConfigParser + LoggerConfig *zap.Config + Node []string + Prefix string + ServerPathFormat string + Timeout time.Duration