nacos

package
v3.0.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 17 Imported by: 30

Documentation

Overview

Package nacos implements config center around Nacos.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleClientRestart

func HandleClientRestart(r nacosClientFacade)

HandleClientRestart Restart configClient handler

func ValidateNacosClient

func ValidateNacosClient(container nacosClientFacade) error

ValidateNacosClient Validate nacos configClient , if null then create it

Types

type NacosClient

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

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

NacosClient Nacos configClient

func (*NacosClient) Client

Client Get Client

func (*NacosClient) Close

func (n *NacosClient) Close()

Close Close nacos configClient , then set null

func (*NacosClient) Done

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

Done Get nacos configClient exit signal

func (*NacosClient) NacosClientValid

func (n *NacosClient) NacosClientValid() bool

NacosClientValid Get nacos configClient valid status

func (*NacosClient) SetClient

func (n *NacosClient) SetClient(configClient *nacosClient.NacosConfigClient)

SetClient Set configClient

Jump to

Keyboard shortcuts

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