Documentation
¶
Index ¶
- Variables
- type Client
- func (s *Client) BindParams(method string, content map[string]interface{}) (map[string]string, error)
- func (s *Client) EncryptionSI(information string) (string, error)
- func (s *Client) GetPrivateKey(privateKeyName, privatePassword string) (*rsa.PrivateKey, error)
- func (s *Client) Request(method string, content map[string]interface{}) (data string, err error)
- func (s *Client) RequestOnly(method string, content map[string]interface{}) (data string, err error)
- func (s *Client) Sign(params map[string]string) (string, error)
- func (s *Client) VerifyResult(jsonStr, sign string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewAllInPayClient ¶
func (*Client) BindParams ¶
func (s *Client) BindParams(method string, content map[string]interface{}) (map[string]string, error)
BindParams 构建参数
func (*Client) EncryptionSI ¶
EncryptionSI RSA加密敏感信息
func (*Client) GetPrivateKey ¶
func (s *Client) GetPrivateKey(privateKeyName, privatePassword string) (*rsa.PrivateKey, error)
GetPrivateKey 获取私钥
func (*Client) RequestOnly ¶ added in v0.2.10
func (s *Client) RequestOnly(method string, content map[string]interface{}) (data string, err error)
RequestOnly 仅请求处理
func (*Client) VerifyResult ¶
VerifyResult 验参
Click to show internal directories.
Click to hide internal directories.