Documentation ¶
Index ¶
- type NacosClientParam
- type ShenYuNacosClient
- func (nc *ShenYuNacosClient) DeregisterServiceInstance(metaData interface{}) (deRegisterResult bool, err error)
- func (nc *ShenYuNacosClient) GetServiceInstanceInfo(metaData interface{}) (instances interface{}, err error)
- func (nc *ShenYuNacosClient) NewClient(clientParam interface{}) (client interface{}, createResult bool, err error)
- func (nc *ShenYuNacosClient) RegisterServiceInstance(metaData interface{}) (registerResult bool, err error)
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 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 *
Click to show internal directories.
Click to hide internal directories.