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.
Click to show internal directories.
Click to hide internal directories.