Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegisterOptions ¶
type Registry ¶
type Registry interface {
//Register(*ServiceInfo) error
//Init(...Option) error
//Init(*ServiceInfo, ...Option) error
Init(*ServiceInfo) error
Register() error
Deregister() error
//服务选择
//Selector(string) (string, error)
//GetService(string, ...GetOption) ([]*Service, error)
//GetServices(string, string) ([]ServiceInfo, error)
//SelectorService(string) ([]registry.ServiceInfo, error)
SelectorService(string, string) (*ServiceInfo, error)
GetSid() string
}
type ServiceInfo ¶
type WatchOptions ¶
Click to show internal directories.
Click to hide internal directories.