Documentation
¶
Index ¶
- func GetSignHeaders(params map[string]string, secretKey string) map[string]string
- func GetSignHeadersFromRequest(cr rpc_request.IConfigRequest, secretKey string) map[string]string
- type XgrpcServer
- func (server *XgrpcServer) GetNextServer() (constant.ServerConfig, error)
- func (server *XgrpcServer) GetServerList() []constant.ServerConfig
- func (server *XgrpcServer) InjectSecurityInfo(param map[string]string)
- func (server *XgrpcServer) InjectSign(request rpc_request.IRequest, param map[string]string, ...)
- func (server *XgrpcServer) InjectSkAk(params map[string]string, clientConfig constant.ClientConfig)
- func (server *XgrpcServer) ReqApi(api string, params map[string]string, method string) (string, error)
- func (server *XgrpcServer) 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 ¶
func GetSignHeaders ¶
func GetSignHeadersFromRequest ¶
func GetSignHeadersFromRequest(cr rpc_request.IConfigRequest, secretKey string) map[string]string
Types ¶
type XgrpcServer ¶
type XgrpcServer struct { sync.RWMutex ServerSrcChangeSignal chan struct{} // contains filtered or unexported fields }
func NewXgrpcServer ¶
func NewXgrpcServer(serverList []constant.ServerConfig, clientCfg constant.ClientConfig, httpAgent http_agent.IHttpAgent, timeoutMs uint64, endpoint string) (*XgrpcServer, error)
func (*XgrpcServer) GetNextServer ¶
func (server *XgrpcServer) GetNextServer() (constant.ServerConfig, error)
func (*XgrpcServer) GetServerList ¶
func (server *XgrpcServer) GetServerList() []constant.ServerConfig
func (*XgrpcServer) InjectSecurityInfo ¶
func (server *XgrpcServer) InjectSecurityInfo(param map[string]string)
func (*XgrpcServer) InjectSign ¶
func (server *XgrpcServer) InjectSign(request rpc_request.IRequest, param map[string]string, clientConfig constant.ClientConfig)
func (*XgrpcServer) InjectSkAk ¶
func (server *XgrpcServer) InjectSkAk(params map[string]string, clientConfig constant.ClientConfig)
Click to show internal directories.
Click to hide internal directories.