Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
Client *http.Client
RetryConfig *HTTPRetryConfig
}
func NewHTTPClient ¶
func NewHTTPClient() (*HTTPClient, error)
func (*HTTPClient) DoHttpRequest ¶
func (c *HTTPClient) DoHttpRequest(ctx context.Context, req *PushRequest) (*PushResponse, error)
type HTTPOption ¶
func SetHeader ¶
func SetHeader(key string, value string) HTTPOption
type HTTPRetryConfig ¶
type PushRequest ¶
type PushRequest struct {
Method string
URL string
Body []byte
Header []HTTPOption
}
Click to show internal directories.
Click to hide internal directories.