package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jan 4, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package client make easy to use an http client
PrefixHTTP is the env prefix of Config environment variables.
NewHTTPClient crate a new *http.Client with Config fields set. If parent is present only config fields are changed.
type Config struct {
Timeout time.Duration `env:"TIMEOUT,required"`
}
Config of the http client.
SetTimeout set request timeout.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.