Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHTTPClient ¶
CreateHTTPClient - creates a new HTTP client using 0 as maxConnsPerHost
func CreateHTTPClientAdv ¶ added in v1.3.1
func CreateHTTPClientAdv(timeout time.Duration, insecureSkipVerify bool, maxConnsPerHost int) *http.Client
CreateHTTPClientAdv - creates a new HTTP client (use zero maxConnsPerHost for unlimited connections)
func GetSyncMapSize ¶
GetSyncMapSize - returns the sync map size
Types ¶
type Duration ¶ added in v1.1.0
Duration - a duration wrapper type to add the method below
func ForceNewStringDuration ¶ added in v1.2.1
ForceNewStringDuration - returns a new duration based on a string (panics on error)
func NewDuration ¶ added in v1.2.1
NewDuration - returns a new duration based on duration values
func NewStringDuration ¶ added in v1.2.1
NewStringDuration - returns a new duration based on a string
func (*Duration) MarshalJSON ¶ added in v1.2.0
MarshalJSON - transforms the value to the encoded json format
func (*Duration) UnmarshalJSON ¶ added in v1.2.0
UnmarshalJSON - transforms the json format to the duration format
func (*Duration) UnmarshalText ¶ added in v1.1.0
UnmarshalText - used by the toml parser to proper parse duration values