apiclientconfig

package
v0.45.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// StreamTimeoutDefault is a default timeout of NeoFS API streaming operation.
	StreamTimeoutDefault = time.Minute
)

Variables

This section is empty.

Functions

func AllowExternal added in v0.33.0

func AllowExternal(c *config.Config) bool

AllowExternal returns the value of "allow_external" config parameter from "apiclient" section.

Returns false if the value is missing or invalid.

func MinConnTime added in v0.45.2

func MinConnTime(c *config.Config) time.Duration

MinConnTime returns the value of "min_connection_time" config parameter from "apiclient" section. Defaults to 20s.

func PingInterval added in v0.45.2

func PingInterval(c *config.Config) time.Duration

PingInterval returns the value of "ping_interval" config parameter from "apiclient" section. Defaults to 10s.

func PingTimeout added in v0.45.2

func PingTimeout(c *config.Config) time.Duration

PingTimeout returns the value of "ping_timeout" config parameter from "apiclient" section. Defaults to 5s.

func StreamTimeout added in v0.32.0

func StreamTimeout(c *config.Config) time.Duration

StreamTimeout returns the value of "stream_timeout" config parameter from "apiclient" section.

Returns DialTimeoutDefault if the value is not positive duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL