xnacos_registry

package
v1.0.1-0...-e52dcc8 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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) Close

func (e *NacosRegistery) Close() error

Close ...

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 ... 服务注册

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳