Documentation
¶
Index ¶
- func LoadConfig(cfgFile string) error
- type APIConfig
- type BasicAuthConfig
- type ClickhouseConfig
- type CommitterConfig
- type Config
- type FailureRecovererConfig
- type LogConfig
- type MemoryConfig
- type PollerConfig
- type RPCBatchRequestConfig
- type RPCConfig
- type RedisConfig
- type ReorgHandlerConfig
- type StorageConfig
- type StorageConnectionConfig
- type StorageType
- type ToggleableRPCBatchRequestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
Types ¶
type APIConfig ¶
type APIConfig struct { Host string `mapstructure:"host"` BasicAuth BasicAuthConfig `mapstructure:"basicAuth"` }
type BasicAuthConfig ¶
type ClickhouseConfig ¶
type ClickhouseConfig struct { Host string `mapstructure:"host"` Port int `mapstructure:"port"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` Database string `mapstructure:"database"` DisableTLS bool `mapstructure:"disableTLS"` AsyncInsert bool `mapstructure:"asyncInsert"` MaxRowsPerInsert int `mapstructure:"maxRowsPerInsert"` }
type CommitterConfig ¶
type Config ¶
type Config struct { RPC RPCConfig `mapstructure:"rpc"` Log LogConfig `mapstructure:"log"` Poller PollerConfig `mapstructure:"poller"` Committer CommitterConfig `mapstructure:"committer"` FailureRecoverer FailureRecovererConfig `mapstructure:"failureRecoverer"` ReorgHandler ReorgHandlerConfig `mapstructure:"reorgHandler"` Storage StorageConfig `mapstructure:"storage"` API APIConfig `mapstructure:"api"` }
var Cfg Config
type FailureRecovererConfig ¶
type MemoryConfig ¶
type MemoryConfig struct {
MaxItems int `mapstructure:"maxItems"`
}
type PollerConfig ¶
type PollerConfig struct { Enabled bool `mapstructure:"enabled"` Interval int `mapstructure:"interval"` BlocksPerPoll int `mapstructure:"blocksPerPoll"` FromBlock int `mapstructure:"fromBlock"` ForceFromBlock bool `mapstructure:"forceFromBlock"` UntilBlock int `mapstructure:"untilBlock"` ParallelPollers int `mapstructure:"parallelPollers"` }
type RPCBatchRequestConfig ¶
type RPCConfig ¶
type RPCConfig struct { URL string `mapstructure:"url"` Blocks RPCBatchRequestConfig `mapstructure:"blocks"` Logs RPCBatchRequestConfig `mapstructure:"logs"` BlockReceipts ToggleableRPCBatchRequestConfig `mapstructure:"blockReceipts"` Traces ToggleableRPCBatchRequestConfig `mapstructure:"traces"` }
type RedisConfig ¶
type ReorgHandlerConfig ¶
type StorageConfig ¶
type StorageConfig struct { Staging StorageConnectionConfig `mapstructure:"staging"` Main StorageConnectionConfig `mapstructure:"main"` Orchestrator StorageConnectionConfig `mapstructure:"orchestrator"` }
type StorageConnectionConfig ¶
type StorageConnectionConfig struct { Clickhouse *ClickhouseConfig `mapstructure:"clickhouse"` Memory *MemoryConfig `mapstructure:"memory"` Redis *RedisConfig `mapstructure:"redis"` }
type StorageType ¶
type StorageType string
const ( StorageTypeMain StorageType = "main" StorageTypeStaging StorageType = "staging" StorageTypeOrchestrator StorageType = "orchestrator" )
type ToggleableRPCBatchRequestConfig ¶
type ToggleableRPCBatchRequestConfig struct { Enabled bool `mapstructure:"enabled"` RPCBatchRequestConfig }
Click to show internal directories.
Click to hide internal directories.