Documentation ¶
Index ¶
- func DeregisterServiceInstance(client *naming_client.INamingClient, opts *options.DeregisterServiceOptions) error
- func GetConfigClient(opts *options.NacosOptions) (*config_client.IConfigClient, error)
- func GetNamingClient(opts *options.NacosOptions) (*naming_client.INamingClient, error)
- func RegisterServiceInstance(client *naming_client.INamingClient, opts *options.RegisterServiceOptions) error
- func SelectServiceInstance(client *naming_client.INamingClient, ...) (*model.Instance, error)
- func SubscribeServiceInstance(client *naming_client.INamingClient, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeregisterServiceInstance ¶
func DeregisterServiceInstance(client *naming_client.INamingClient, opts *options.DeregisterServiceOptions) error
DeregisterServiceInstance Deregister a specified service instance
func GetConfigClient ¶ added in v1.2.0
func GetConfigClient(opts *options.NacosOptions) (*config_client.IConfigClient, error)
GetConfigClient Get Nacos config client
func GetNamingClient ¶
func GetNamingClient(opts *options.NacosOptions) (*naming_client.INamingClient, error)
GetNamingClient Get Nacos naming client
func RegisterServiceInstance ¶
func RegisterServiceInstance(client *naming_client.INamingClient, opts *options.RegisterServiceOptions) error
RegisterServiceInstance Register a service instance
func SelectServiceInstance ¶
func SelectServiceInstance(client *naming_client.INamingClient, opts *options.SelectServiceInstanceOptions) (*model.Instance, error)
SelectServiceInstance Select an available service instance
func SubscribeServiceInstance ¶ added in v1.1.0
func SubscribeServiceInstance(client *naming_client.INamingClient, opts *options.SubscribeServiceInstanceOptions) error
SubscribeServiceInstance Subscribe services change and select an available service instance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.