apiclientconfig

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StreamTimeoutDefault is the default timeout of NeoFS API streaming operation.
	StreamTimeoutDefault = time.Minute
	// MinConnTimeDefault is the default minimum time of established connection in NeoFS API client.
	MinConnTimeDefault = 20 * time.Second
	// PingIntervalDefault is the default interval between pings in NeoFS API client.
	PingIntervalDefault = 10 * time.Second
	// PingTimeoutDefault is the default timeout of a single ping in NeoFS API client.
	PingTimeoutDefault = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient added in v0.46.0

type APIClient struct {
	StreamTimeout     time.Duration `mapstructure:"stream_timeout"`
	MinConnectionTime time.Duration `mapstructure:"min_connection_time"`
	PingInterval      time.Duration `mapstructure:"ping_interval"`
	PingTimeout       time.Duration `mapstructure:"ping_timeout"`
}

APIClient contains configuration for NeoFS API client.

func (*APIClient) Normalize added in v0.46.0

func (c *APIClient) Normalize()

Normalize ensures that all fields of APIClient have valid values. If some of fields are not set or have invalid values, they will be set to default values.

Jump to

Keyboard shortcuts

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