nacos

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenConfigCallback

func ListenConfigCallback(namespace, group, dataId, data string)

Types

type NacosClient

type NacosClient struct {
	Enabled     bool
	ServiceName string
	GroupName   string
	DataId      string
	Naming      naming_client.INamingClient
	Config      config_client.IConfigClient
}

func InitNacosClient

func InitNacosClient(config *config.CKManNacosConfig, log string) (*NacosClient, error)

func (*NacosClient) DeregisterInstance

func (c *NacosClient) DeregisterInstance(ip string, port int) (bool, error)

func (*NacosClient) GetAllInstances

func (c *NacosClient) GetAllInstances() ([]model.Instance, error)

func (*NacosClient) GetConfig

func (c *NacosClient) GetConfig() (string, error)

func (*NacosClient) ListenConfig

func (c *NacosClient) ListenConfig() error

func (*NacosClient) PublishConfig

func (c *NacosClient) PublishConfig(content string) error

func (*NacosClient) RegisterInstance

func (c *NacosClient) RegisterInstance(ip string, port int, metadata map[string]string) (bool, error)

func (*NacosClient) Start

func (c *NacosClient) Start(ipHttp string, portHttp int) error

func (*NacosClient) Stop

func (c *NacosClient) Stop(ip string, port int) error

func (*NacosClient) Subscribe

func (c *NacosClient) Subscribe() error

func (*NacosClient) SubscribeCallback

func (c *NacosClient) SubscribeCallback(services []model.SubscribeService, err error)

func (*NacosClient) Unsubscribe

func (c *NacosClient) Unsubscribe() error

Jump to

Keyboard shortcuts

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