Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WorkerID = 0 // WorkerMax 最大worker id WorkerMax = 4096 WorkerIDKey = "worker_id" )
Functions ¶
Types ¶
type NacosClient ¶
type NacosClient struct { vo.NacosClientParam config_client.IConfigClient // contains filtered or unexported fields }
func NewNacosClient ¶
func NewNacosClient(cc *constant.ClientConfig, sc []constant.ServerConfig) *NacosClient
NewNacosClient new nacos client
func (*NacosClient) GetRegistry ¶
func (n *NacosClient) GetRegistry() *nacos.Registry
GetRegistry get registry
func (*NacosClient) GetWorkID ¶
func (n *NacosClient) GetWorkID() (int, error)
GetWorkID 获取worker id
func (*NacosClient) ServerRegistry ¶
func (n *NacosClient) ServerRegistry()
ServerRegistry registry server
Click to show internal directories.
Click to hide internal directories.