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(config *HTTPClientConfig) (*HTTPClient, error)
func (*HTTPClient) DoHttpRequest ¶
func (c *HTTPClient) DoHttpRequest(ctx context.Context, req *PushRequest) (*PushResponse, error)
type HTTPClientConfig ¶
type HTTPClientConfig struct { ProxyConfig *HTTPProxyConfig RetryConfig *HTTPRetryConfig }
func NewHTTPClientConfig ¶
func NewHTTPClientConfig(c *config.Config) (*HTTPClientConfig, error)
type HTTPOption ¶
func SetHeader ¶
func SetHeader(key string, value string) HTTPOption
type HTTPProxyConfig ¶
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.