Versions in this module Expand all Collapse all v0 v0.0.2 Jul 5, 2024 v0.0.1 May 27, 2024 Changes in this version + const Version + func SetGlobalHTTPClientFunc(fn HTTPClientFunc) + type Client struct + func NewClient(config Config, options ...ClientOption) *Client + func (c *Client) BuildRequestWithSign(req request.Request) (httpReq *http.Request, err error) + func (c *Client) DoNotifyRequest(ctx context.Context, req *http.Request, n notify.Notify) (err error) + func (c *Client) DoRequest(ctx context.Context, req request.Request, resp response.Response) (err error) + func (c *Client) DoUploadFile(ctx context.Context, filePath string, req *request.FileRequest, ...) (err error) + func (c *Client) GetSigner() sign.Signer + func (c *Client) Println(s string) + func (c *Client) SetLogger(level string, out io.Writer) + type ClientOption func(client *Client) + func WithHTTPClientFunc(fn HTTPClientFunc) ClientOption + type Config struct + ProductId string + RsaHuifuPublicKey string + RsaMerchantPrivateKey string + SystemID string + VerifySign bool + func NewConfig(systemID, productID, rsaHuifuPublicKey, rsaMerchantPrivateKey string, ...) Config + type HTTPClientFunc func(r *http.Request) *http.Client + type Logger struct + func (l *Logger) Disable() + func (l *Logger) Enable()