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 ¶
func (n *NacosClient) Client() *nacosClient.NacosConfigClient
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
Click to show internal directories.
Click to hide internal directories.