Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DialTimeoutDefault is a default dial timeout of FrostFS API client connection. DialTimeoutDefault = 5 * time.Second // StreamTimeoutDefault is a default timeout of FrostFS API streaming operation. StreamTimeoutDefault = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func AllowExternal ¶
AllowExternal returns the value of "allow_external" config parameter from "apiclient" section.
Returns false if the value is missing or invalid.
func DialTimeout ¶
DialTimeout returns the value of "dial_timeout" config parameter from "apiclient" section.
Returns DialTimeoutDefault if the value is not positive duration.
func ReconnectTimeout ¶
ReconnectTimeout returns the value of "reconnect_timeout" config parameter from "apiclient" section.
Returns 0 if the value is not positive duration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.