Documentation
¶
Index ¶
- func LoadConfig(cfgFile string) error
- type APIConfig
- type BasicAuthConfig
- type BlockPublisherConfig
- type ClickhouseConfig
- type CommitterConfig
- type Config
- type ContractApiRequestConfig
- type EventPublisherConfig
- type FailureRecovererConfig
- type LogConfig
- type PollerConfig
- type PublisherConfig
- type RPCBatchRequestConfig
- type RPCConfig
- type ReorgHandlerConfig
- type StorageConfig
- type StorageConnectionConfig
- type StorageType
- type TableConfig
- type TableOverrideConfig
- type ThirdwebConfig
- type ToggleableRPCBatchRequestConfig
- type TracePublisherConfig
- type TransactionPublisherConfig
- type WorkModeConfig
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"` ThirdwebContractApi string `mapstructure:"thirdwebContractApi"` ContractApiRequest ContractApiRequestConfig `mapstructure:"contractApiRequest"` AbiDecodingEnabled bool `mapstructure:"abiDecodingEnabled"` Thirdweb ThirdwebConfig `mapstructure:"thirdweb"` }
type BasicAuthConfig ¶
type BlockPublisherConfig ¶
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"` MaxOpenConns int `mapstructure:"maxOpenConns"` MaxIdleConns int `mapstructure:"maxIdleConns"` ChainBasedConfig map[string]TableOverrideConfig `mapstructure:"chainBasedConfig"` EnableParallelViewProcessing bool `mapstructure:"enableParallelViewProcessing"` }
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"` Publisher PublisherConfig `mapstructure:"publisher"` WorkMode WorkModeConfig `mapstructure:"workMode"` }
var Cfg Config
type ContractApiRequestConfig ¶
type ContractApiRequestConfig struct { MaxIdleConns int `mapstructure:"maxIdleConns"` MaxIdleConnsPerHost int `mapstructure:"maxIdleConnsPerHost"` MaxConnsPerHost int `mapstructure:"maxConnsPerHost"` IdleConnTimeout int `mapstructure:"idleConnTimeout"` DisableCompression bool `mapstructure:"disableCompression"` Timeout int `mapstructure:"timeout"` }
type EventPublisherConfig ¶
type FailureRecovererConfig ¶
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 PublisherConfig ¶
type PublisherConfig struct { Enabled bool `mapstructure:"enabled"` Brokers string `mapstructure:"brokers"` Username string `mapstructure:"username"` Password string `mapstructure:"password"` Blocks BlockPublisherConfig `mapstructure:"blocks"` Transactions TransactionPublisherConfig `mapstructure:"transactions"` Traces TracePublisherConfig `mapstructure:"traces"` Events EventPublisherConfig `mapstructure:"events"` }
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"` ChainID string `mapstructure:"chainId"` }
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"`
}
type StorageType ¶
type StorageType string
const ( StorageTypeMain StorageType = "main" StorageTypeStaging StorageType = "staging" StorageTypeOrchestrator StorageType = "orchestrator" )
type TableConfig ¶
type TableOverrideConfig ¶
type TableOverrideConfig map[string]TableConfig
type ThirdwebConfig ¶
type ThirdwebConfig struct {
ClientId string `mapstructure:"clientId"`
}
type ToggleableRPCBatchRequestConfig ¶
type ToggleableRPCBatchRequestConfig struct { Enabled bool `mapstructure:"enabled"` RPCBatchRequestConfig }
type TracePublisherConfig ¶
type WorkModeConfig ¶
Click to show internal directories.
Click to hide internal directories.