Versions in this module Expand all Collapse all v1 v1.0.1 Jun 12, 2024 v1.0.0 Jun 9, 2024 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