nacos_client

package
v0.0.0-...-f9daae4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INacosClient

type INacosClient interface {

	//SetClientConfig is use to set nacos client config
	SetClientConfig(constant.ClientConfig) error
	//SetServerConfig is use to set nacos server config
	SetServerConfig([]constant.ServerConfig) error
	//GetClientConfig use to get client config
	GetClientConfig() (constant.ClientConfig, error)
	//GetServerConfig use to get server config
	GetServerConfig() ([]constant.ServerConfig, error)
	//SetHttpAgent use to set http agent
	SetHttpAgent(http_agent.IHttpAgent) error
	//GetHttpAgent use to get http agent
	GetHttpAgent() (http_agent.IHttpAgent, error)
}

type NacosClient

type NacosClient struct {
	// contains filtered or unexported fields
}

func (*NacosClient) GetClientConfig

func (client *NacosClient) GetClientConfig() (config constant.ClientConfig, err error)

GetClientConfig use to get client config

func (*NacosClient) GetHttpAgent

func (client *NacosClient) GetHttpAgent() (agent http_agent.IHttpAgent, err error)

GetHttpAgent use to get http agent

func (*NacosClient) GetServerConfig

func (client *NacosClient) GetServerConfig() (configs []constant.ServerConfig, err error)

GetServerConfig use to get server config

func (*NacosClient) SetClientConfig

func (client *NacosClient) SetClientConfig(config constant.ClientConfig) (err error)

SetClientConfig is use to set nacos client Config

func (*NacosClient) SetHttpAgent

func (client *NacosClient) SetHttpAgent(agent http_agent.IHttpAgent) (err error)

SetHttpAgent use to set http agent

func (*NacosClient) SetServerConfig

func (client *NacosClient) SetServerConfig(configs []constant.ServerConfig) (err error)

SetServerConfig is use to set nacos server config

Jump to

Keyboard shortcuts

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