nacos_server

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSignHeaders

func GetSignHeaders(params map[string]string, secretKey string) map[string]string

func GetSignHeadersFromRequest added in v1.2.5

func GetSignHeadersFromRequest(cr rpc_request.IConfigRequest, secretKey string) map[string]string

Types

type NacosServer

type NacosServer struct {
	sync.RWMutex

	ServerSrcChangeSignal chan struct{}
	// contains filtered or unexported fields
}

func NewNacosServer

func NewNacosServer(ctx context.Context, serverList []constant.ServerConfig, clientCfg constant.ClientConfig, httpAgent http_agent.IHttpAgent, timeoutMs uint64, endpoint string, endpointQueryHeader map[string][]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)

func (*NacosServer) InjectSign added in v1.2.5

func (server *NacosServer) InjectSign(request rpc_request.IRequest, param map[string]string, clientConfig constant.ClientConfig)

func (*NacosServer) InjectSignForNamingHttp added in v1.2.5

func (server *NacosServer) InjectSignForNamingHttp(param map[string]string, clientConfig constant.ClientConfig)

func (*NacosServer) InjectSkAk

func (server *NacosServer) InjectSkAk(params map[string]string, clientConfig constant.ClientConfig)

func (*NacosServer) ReqApi

func (server *NacosServer) ReqApi(api string, params map[string]string, method string, config constant.ClientConfig) (string, error)

func (*NacosServer) ReqConfigApi

func (server *NacosServer) ReqConfigApi(api string, params map[string]string, headers map[string]string, method string, timeoutMS uint64) (string, error)

Jump to

Keyboard shortcuts

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