Documentation ¶
Index ¶
- type INacosClient
- type NacosClient
- func (client *NacosClient) GetClientConfig() (config constant.ClientConfig, err error)
- func (client *NacosClient) GetHttpAgent() (agent http_agent.IHttpAgent, err error)
- func (client *NacosClient) GetServerConfig() (configs []constant.ServerConfig, err error)
- func (client *NacosClient) SetClientConfig(config constant.ClientConfig) (err error)
- func (client *NacosClient) SetHttpAgent(agent http_agent.IHttpAgent) (err error)
- func (client *NacosClient) SetServerConfig(configs []constant.ServerConfig) (err error)
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
Click to show internal directories.
Click to hide internal directories.