nacos_client

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NacosClientParam

type NacosClientParam struct {
	IpAddr      string //the nacos server address require user provide
	Port        uint64 //the nacos server port require user provide
	NamespaceId string // the namespaceId of Nacos.When namespace is public, fill in the blank string here  require user provide.
}

*

  • NacosClientParam *

type ShenYuNacosClient

type ShenYuNacosClient struct {
	NacosClient *naming_client.NamingClient
}

*

  • ShenYuNacosClient *

func (*ShenYuNacosClient) DeregisterServiceInstance

func (nc *ShenYuNacosClient) DeregisterServiceInstance(metaData interface{}) (deRegisterResult bool, err error)

*

  • DeregisterServiceInstance *

func (*ShenYuNacosClient) GetServiceInstanceInfo

func (nc *ShenYuNacosClient) GetServiceInstanceInfo(metaData interface{}) (instances interface{}, err error)

*

  • GetServiceInstanceInfo *

func (*ShenYuNacosClient) NewClient

func (nc *ShenYuNacosClient) NewClient(clientParam interface{}) (client interface{}, createResult bool, err error)

*

  • create nacos client *

func (*ShenYuNacosClient) RegisterServiceInstance

func (nc *ShenYuNacosClient) RegisterServiceInstance(metaData interface{}) (registerResult bool, err error)

*

  • Register Instance to Nacos *

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL