config

package
v1.1.66 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

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