config

package
v0.2400.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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.

func (*Config) Validate

func (c *Config) Validate() error

Validate validates the configuration settings.

Jump to

Keyboard shortcuts

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