Versions in this module Expand all Collapse all v0 v0.0.1 Jan 27, 2022 Changes in this version + type HTTPClient struct + Client *http.Client + RetryConfig *HTTPRetryConfig + func NewHTTPClient() (*HTTPClient, error) + func (c *HTTPClient) DoHttpRequest(ctx context.Context, req *PushRequest) (*PushResponse, error) + type HTTPOption func(r *http.Request) + func SetHeader(key string, value string) HTTPOption + type HTTPRetryConfig struct + MaxRetryTimes int + RetryInterval time.Duration + type PushRequest struct + Body []byte + Header []HTTPOption + Method string + URL string + type PushResponse struct + Body []byte + Header http.Header + Status int