Documentation
¶
Index ¶
- type Client
- func (c *Client) Delete(ctx context.Context, req *Request, reply interface{}) error
- func (c *Client) Get(ctx context.Context, req *Request, reply interface{}) error
- func (c *Client) NewRequest(ctx context.Context, method string, req *Request, reply interface{}) (*resty.Request, error)
- func (c *Client) Post(ctx context.Context, req *Request, reply interface{}) error
- func (c *Client) Put(ctx context.Context, req *Request, reply interface{}) error
- type ClientConfig
- type Request
- type Server
- type ServerConfig
- type SignVerify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(config *ClientConfig) *Client
func (*Client) NewRequest ¶
type ClientConfig ¶
type Server ¶
func NewServer ¶
func NewServer(config *ServerConfig) *Server
func (*Server) Header ¶
func (s *Server) Header() gin.HandlerFunc
Header middleware is commonly used for p2p communication, like ios/android application, or server to server call
func (*Server) Metric ¶
func (s *Server) Metric() gin.HandlerFunc
type ServerConfig ¶
type SignVerify ¶
type SignVerify struct {
// contains filtered or unexported fields
}
func NewSignatureVerify ¶
func NewSignatureVerify(config *ClientConfig, r *redis.Redis) *SignVerify
func (*SignVerify) SetRequestTimeout ¶
func (s *SignVerify) SetRequestTimeout(timeout int)
func (*SignVerify) SetSecretURL ¶
func (s *SignVerify) SetSecretURL(url string)
func (*SignVerify) SetSkipsURL ¶
func (s *SignVerify) SetSkipsURL(url string)
func (*SignVerify) Signature ¶
func (s *SignVerify) Signature() gin.HandlerFunc
Signature middleware is commonly used for p2p communication, like ios/android application, or server to server call
Click to show internal directories.
Click to hide internal directories.