Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DialTimeoutDefault is a default dial timeout of NeoFS API client connection. DialTimeoutDefault = 5 * time.Second // StreamTimeoutDefault is a default timeout of NeoFS API streaming operation. StreamTimeoutDefault = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func AllowExternal ¶ added in v0.33.0
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 ¶ added in v0.36.0
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.