Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { General GeneralConfig `toml:"general"` ElasticSearch ElasticSearchConfig `toml:"elasticSearch"` }
Config holds the toml configuration for the levelDB to elastic tool
type DBConfig ¶
type DBConfig struct { FilePath string `toml:"filePath"` Type string `toml:"type"` BatchDelaySeconds int `toml:"batchDelaySeconds"` MaxBatchSize int `toml:"maxBatchSize"` MaxOpenFiles int `toml:"maxOpenFiles"` }
DBConfig will map the db configuration
type ElasticSearchConfig ¶
type ElasticSearchConfig struct { URL string `toml:"url"` Username string `toml:"username"` Password string `toml:"password"` }
ElasticSearchConfig holds the elastic search configuration
type GeneralConfig ¶
type GeneralConfig struct { DBPath string `toml:"dbPath"` NodeConfigFilePath string `toml:"nodeConfigPath"` ChainID string `toml:"chainID"` }
GeneralConfig holds basic configuration
Click to show internal directories.
Click to hide internal directories.