Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NacosServerConfigs ¶
func NacosServerConfigs(config *registry.RegistryConfig) []constant.ServerConfig
DefaultClientConfig创建一个默认的sever配置
Types ¶
type NacosRegistery ¶
type NacosRegistery struct {
naming_client.INamingClient
}
*
- nacos注册中心
- Copyright (C) @2020 hugo network Co. Ltd
- @description
- @updateRemark
- @author hugo
- @updateUser
- @createDate 2020/8/21 9:25 上午
- @updateDate 2020/8/21 9:25 上午
- @version 1.0
* nacos的实体
func CreateNacosRegister ¶
func CreateNacosRegister(client *xnacos_client.NacosClient) *NacosRegistery
func (*NacosRegistery) DeregisterService ¶
func (e *NacosRegistery) DeregisterService(ctx context.Context, info *server.ServiceInfo) error
DeregisterService ... 注销服务
func (*NacosRegistery) RegisterService ¶
func (e *NacosRegistery) RegisterService(ctx context.Context, info *server.ServiceInfo) error
RegisterService ... 服务注册
Click to show internal directories.
Click to hide internal directories.