Documentation
¶
Index ¶
- func DiscoverClose()
- func DiscoverCloseWithParam(name, scheme, service string)
- func DiscoverEtcd(config *config.DiscoverConfig, client *clientV3.Client, ...) error
- func DiscoverInfo() string
- func DiscoverRun() []error
- func DiscoverRunWithParam(name, scheme, service string) []error
- func RegisterClose() []error
- func RegisterCloseWithParam(nameOrKey string) []error
- func RegisterEtcd(config *config.RegisterConfig, client *clientV3.Client, ...) error
- func RegisterInfo() string
- func RegisterRun() []error
- func RegisterRunWithParam(nameOrKey string) []error
- func RegisterUpdateVal(nameOrKey, val string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverCloseWithParam ¶
func DiscoverCloseWithParam(name, scheme, service string)
DiscoverCloseWithParam close all the running discovers with the specified name or the combine: scheme and service.
func DiscoverEtcd ¶
func DiscoverEtcd(config *config.DiscoverConfig, client *clientV3.Client, etcdConfig *clientV3.Config) error
DiscoverEtcd etcd discover with some configurations. registry key: name or key, the name preferred.
func DiscoverInfo ¶
func DiscoverInfo() string
DiscoverInfo return the basic info about discover: key and discover addr.
func DiscoverRunWithParam ¶
DiscoverRunWithParam run discover have been registered with the specified name or the combine: scheme and service.
func RegisterCloseWithParam ¶
RegisterCloseWithParam close all the running registers with the specified key or name.
func RegisterEtcd ¶
func RegisterEtcd(config *config.RegisterConfig, client *clientV3.Client, etcdConfig *clientV3.Config) error
RegisterEtcd etcd register with some configurations. registry key: name or key, the name preferred.
func RegisterInfo ¶
func RegisterInfo() string
RegisterInfo return the basic info about register: key and register addr.
func RegisterRunWithParam ¶
RegisterRunWithParam run the register have been registered and with the specified name or key.
func RegisterUpdateVal ¶
RegisterUpdateVal update the register val, shall not call, if no necessary. If you want call success, must set MutableVal=true when init the register.
Types ¶
This section is empty.