Documentation ¶
Index ¶
- func GetSignHeaders(params map[string]string, secretKey string) map[string]string
- type NacosServer
- func (server *NacosServer) GetNextServer() (constant.ServerConfig, error)
- func (server *NacosServer) GetServerList() []constant.ServerConfig
- func (server *NacosServer) InjectSecurityInfo(param map[string]string)
- func (server *NacosServer) ReqApi(api string, params map[string]string, method string) (string, error)
- func (server *NacosServer) ReqConfigApi(api string, params map[string]string, headers map[string]string, method string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NacosServer ¶
type NacosServer struct { sync.RWMutex ServerSrcChangeSignal chan struct{} // contains filtered or unexported fields }
func NewNacosServer ¶
func NewNacosServer(serverList []constant.ServerConfig, clientCfg constant.ClientConfig, httpAgent http_agent.IHttpAgent, timeoutMs uint64, endpoint string) (*NacosServer, error)
func (*NacosServer) GetNextServer ¶
func (server *NacosServer) GetNextServer() (constant.ServerConfig, error)
func (*NacosServer) GetServerList ¶
func (server *NacosServer) GetServerList() []constant.ServerConfig
func (*NacosServer) InjectSecurityInfo ¶
func (server *NacosServer) InjectSecurityInfo(param map[string]string)
Click to show internal directories.
Click to hide internal directories.