Documentation
¶
Index ¶
- func Auth(username, password string) registry.Option
- func GetStructTagName(pointer interface{}) []string
- func NewRegistry(opts ...registry.Option) registry.Registry
- type Registry
- func (e *Registry) BlockingQuery(targetPointer interface{}, prefix interface{}, call func(value interface{}))
- func (e *Registry) Delete(key string) (err error)
- func (e *Registry) Deregister(s *registry.Service) error
- func (e *Registry) Get(key string) (rsp *registry.KVResult, err error)
- func (e *Registry) GetService(name string) ([]*registry.Service, error)
- func (e *Registry) Init(opts ...registry.Option) error
- func (e *Registry) ListServices() ([]*registry.Service, error)
- func (e *Registry) Options() registry.Options
- func (e *Registry) Put(key string, value interface{}) (err error)
- func (e *Registry) Register(s *registry.Service, opts ...registry.RegisterOption) error
- func (e *Registry) String() string
- func (e *Registry) Watch(opts ...registry.WatchOption) (registry.Watcher, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStructTagName ¶
func GetStructTagName(pointer interface{}) []string
GetStructTagName 获取struct的field的tag内容
Types ¶
type Registry ¶
func (*Registry) BlockingQuery ¶
func (e *Registry) BlockingQuery(targetPointer interface{}, prefix interface{}, call func(value interface{}))
func (*Registry) GetService ¶
Click to show internal directories.
Click to hide internal directories.