nacos

package
v3.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 19 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleClientRestart

func HandleClientRestart(r nacosClientFacade)

HandleClientRestart Restart client handler

func ValidateNacosClient

func ValidateNacosClient(container nacosClientFacade, opts ...option) error

ValidateNacosClient Validate nacos client , if null then create it

func WithNacosName

func WithNacosName(name string) option

WithNacosName Set nacos name

Types

type NacosClient

type NacosClient struct {
	NacosAddrs []string
	sync.Mutex // for Client

	Timeout time.Duration
	// contains filtered or unexported fields
}

NacosClient Nacos client

func (*NacosClient) Client

Client Get Client

func (*NacosClient) Close

func (n *NacosClient) Close()

Close Close nacos client , then set null

func (*NacosClient) Done

func (n *NacosClient) Done() <-chan struct{}

Done Get nacos client exit signal

func (*NacosClient) NacosClientValid

func (n *NacosClient) NacosClientValid() bool

NacosClientValid Get nacos client valid status

func (*NacosClient) SetClient

func (n *NacosClient) SetClient(client *config_client.IConfigClient)

SetClient Set client

Jump to

Keyboard shortcuts

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