Documentation ¶
Index ¶
- type Discover
- type DiscoverRegistry
- func (r *DiscoverRegistry) Close()
- func (r *DiscoverRegistry) CloseWithParam(name, scheme, service string)
- func (r *DiscoverRegistry) Info() string
- func (r *DiscoverRegistry) Register(config *etcd.Config, client *clientV3.Client, etcdConfig *clientV3.Config) error
- func (r *DiscoverRegistry) Run() (errs []error)
- func (r *DiscoverRegistry) RunWithParam(name, scheme, service string) (errs []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoverRegistry ¶
type DiscoverRegistry struct {
// contains filtered or unexported fields
}
DiscoverRegistry can choose an appropriate Discover based on the provided, with name or service prefix key.
func NewDiscoverRegistry ¶
func NewDiscoverRegistry() *DiscoverRegistry
NewDiscoverRegistry returns a new, initialized DiscoverRegistry.
func (*DiscoverRegistry) CloseWithParam ¶
func (r *DiscoverRegistry) CloseWithParam(name, scheme, service string)
CloseWithParam close all the running discovers with the specified name or the combine: scheme and service.
func (*DiscoverRegistry) Info ¶
func (r *DiscoverRegistry) Info() string
Info return the basic info, service key.
func (*DiscoverRegistry) Register ¶
func (r *DiscoverRegistry) Register(config *etcd.Config, client *clientV3.Client, etcdConfig *clientV3.Config) error
Register the Discover for the service.
func (*DiscoverRegistry) Run ¶
func (r *DiscoverRegistry) Run() (errs []error)
Run the discovers have been registered.
func (*DiscoverRegistry) RunWithParam ¶
func (r *DiscoverRegistry) RunWithParam(name, scheme, service string) (errs []error)
RunWithParam run discover has been registered and with the specified name or the combine: scheme and service.
Click to show internal directories.
Click to hide internal directories.