fschainconfig

package
v0.46.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// DialTimeoutDefault is the default dial timeout of FS chain client connection.
	DialTimeoutDefault = time.Minute
	// CacheTTLDefault is the default value for cached values TTL.
	// It is 0, because actual default depends on block time.
	CacheTTLDefault = time.Duration(0)
	// ReconnectionRetriesNumberDefault is the default value for reconnection retries.
	ReconnectionRetriesNumberDefault = 5
	// ReconnectionRetriesDelayDefault is the default delay b/w reconnections.
	ReconnectionRetriesDelayDefault = 5 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain added in v0.46.0

type Chain struct {
	DialTimeout         time.Duration `mapstructure:"dial_timeout"`
	CacheTTL            time.Duration `mapstructure:"cache_ttl"`
	ReconnectionsNumber int           `mapstructure:"reconnections_number"`
	ReconnectionsDelay  time.Duration `mapstructure:"reconnections_delay"`
	Endpoints           []string      `mapstructure:"endpoints"`
}

Chain contains configuration for NeoFS client connection to FS chain.

func (*Chain) Normalize added in v0.46.0

func (c *Chain) Normalize()

Normalize ensures that all fields of Chain 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