Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is used to specify configuration for httpwrapper
func NewConfig ¶
func NewConfig() *Config
NewConfig Creates and initialises config to default values
func (*Config) AddHeader ¶
AddHeader is used to add new HTTP header for all requests. k - key of header (Authorisation etc.) v - Value of the header
func (*Config) SetRetries ¶
SetRetries is used to set number of reties
func (*Config) SetRetryFactor ¶
SetRetryFactor is used to set retry factor for exponential backoff
func (*Config) SetTimeout ¶
SetTimeout is used to Set timeout for each HTTP requests
Click to show internal directories.
Click to hide internal directories.