Documentation ¶
Overview ¶
Package config implements global configuration options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckpointerConfig ¶
type CheckpointerConfig struct { // Enable the storage checkpointer. Enabled bool `yaml:"enabled"` // Storage checkpointer check interval. CheckInterval time.Duration `yaml:"check_interval"` }
CheckpointerConfig is the storage worker checkpointer configuration structure.
type Config ¶
type Config struct { // Storage backend. Backend string `yaml:"backend"` // Maximum in-memory cache size. MaxCacheSize string `yaml:"max_cache_size"` // Number of concurrent storage diff fetchers. FetcherCount uint `yaml:"fetcher_count"` // Enable storage RPC access for all nodes. PublicRPCEnabled bool `yaml:"public_rpc_enabled,omitempty"` // Disable initial storage sync from checkpoints. CheckpointSyncDisabled bool `yaml:"checkpoint_sync_disabled,omitempty"` // Storage checkpointer configuration. Checkpointer CheckpointerConfig `yaml:"checkpointer,omitempty"` }
Config is the storage worker configuration structure.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default configuration settings.
Click to show internal directories.
Click to hide internal directories.