Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FlagCfg is the flag for cfg FlagCfg = "cfg" // FlagGenesis is the flag for genesis file FlagGenesis = "genesis" )
View Source
const DefaultValues = `` /* 551-byte string literal not displayed */
DefaultValues is the default configuration
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Online OnlineConfig `mapstructure:"Online"` Offline StreamServerCfg `mapstructure:"Offline"` StateDB db.Config `mapstructure:"StateDB"` Executor executor.Config `mapstructure:"Executor"` MerkleTree MTConfig `mapstructure:"MerkleTree"` Log log.Config `mapstructure:"Log"` }
Config is the configuration for the tool
type MTConfig ¶ added in v0.4.3
type MTConfig struct { URI string `mapstructure:"URI"` MaxThreads int `mapstructure:"MaxThreads"` CacheFile string `mapstructure:"CacheFile"` }
MTConfig is the configuration for the merkle tree
type OnlineConfig ¶ added in v0.3.3
type OnlineConfig struct { URI string `mapstructure:"URI"` StreamType datastreamer.StreamType `mapstructure:"StreamType"` }
OnlineConfig is the configuration for the online data streamer
type StreamServerCfg ¶ added in v0.5.0
type StreamServerCfg struct { // Port to listen on Port uint16 `mapstructure:"Port"` // Filename of the binary data file Filename string `mapstructure:"Filename"` // Version of the binary data file Version uint8 `mapstructure:"Version"` // ChainID is the chain ID ChainID uint64 `mapstructure:"ChainID"` // Log is the log configuration Log log.Config `mapstructure:"Log"` // UpgradeEtrogBatchNumber is the batch number of the upgrade etrog UpgradeEtrogBatchNumber uint64 `mapstructure:"UpgradeEtrogBatchNumber"` // WriteTimeout is the TCP write timeout when sending data to a datastream client WriteTimeout types.Duration `mapstructure:"WriteTimeout"` // InactivityTimeout is the timeout to kill an inactive datastream client connection InactivityTimeout types.Duration `mapstructure:"InactivityTimeout"` // InactivityCheckInterval is the time interval to check for datastream client connections that have reached the inactivity timeout to kill them InactivityCheckInterval types.Duration `mapstructure:"InactivityCheckInterval"` }
StreamServerCfg is the configuration for the offline data streamer
Click to show internal directories.
Click to hide internal directories.