Documentation ¶
Index ¶
- func Deregister(key string) error
- func Get(key string) string
- func GetWithPrefix(prefix string) []string
- func InitGlobalRegs(ctx contextx.Context, c *clientv3.Client, opfs ...func(opt Options))
- func RangKV(prefix string, f func(key, value string))
- func Register(key, value string) error
- type Options
- type Registry
- func (r *Registry) Deregister(key string) error
- func (r *Registry) Get(key string) string
- func (r *Registry) GetWithPrefix(prefix string) []string
- func (r *Registry) GetWithPrefixRandom(prefix string) string
- func (r *Registry) GetWithPrefixRoundRobin(prefix string) string
- func (r *Registry) RangeKV(prefix string, f func(key, value string))
- func (r *Registry) Register(key, value string) error
- func (r *Registry) RegisterWithAutoDeregister(key, value string) error
- func (r *Registry) SetNamespace(namespace string)
- func (r *Registry) SetTTL(t time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deregister ¶
func GetWithPrefix ¶
func InitGlobalRegs ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is etcd registry.
func (*Registry) Deregister ¶
func (*Registry) GetWithPrefix ¶
func (*Registry) GetWithPrefixRandom ¶
func (*Registry) GetWithPrefixRoundRobin ¶
func (*Registry) RegisterWithAutoDeregister ¶
func (*Registry) SetNamespace ¶
Click to show internal directories.
Click to hide internal directories.