Documentation ¶
Index ¶
- func CreateConfigFileIfNotExists(fs afero.Fs) error
- func FileExists(fs afero.Fs) (bool, error)
- func Get(key string) (interface{}, error)
- func GetPath() string
- func LoadConfig() error
- func Set(fs afero.Fs, key string, value interface{}) error
- func SetupConfig()
- type APM
- type Config
- type General
- type Job
- type Observability
- type P2P
- type Profiler
- type Rest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfigFileIfNotExists ¶ added in v0.5.0
func LoadConfig ¶
func LoadConfig() error
func SetupConfig ¶ added in v0.5.0
func SetupConfig()
Types ¶
type Config ¶
type Config struct { Profiler `mapstructure:"profiler" json:"profiler"` General `mapstructure:"general" json:"general"` Rest `mapstructure:"rest" json:"rest"` P2P `mapstructure:"p2p" json:"p2p"` Job `mapstructure:"job" json:"job"` Observability `mapstructure:"observability" json:"observability"` APM `mapstructure:"apm" json:"apm"` }
type General ¶
type General struct { UserDir string `mapstructure:"user_dir" json:"user_dir"` WorkDir string `mapstructure:"work_dir" json:"work_dir"` DataDir string `mapstructure:"data_dir" json:"data_dir"` Debug bool `mapstructure:"debug" json:"debug"` HostCountry string `mapstructure:"host_country" json:"host_country"` HostCity string `mapstructure:"host_city" json:"host_city"` HostContinent string `mapstructure:"host_continent" json:"host_continent"` PortAvailableRangeFrom int `mapstructure:"port_available_range_from" json:"port_available_range_from"` PortAvailableRangeTo int `mapstructure:"port_available_range_to" json:"port_available_range_to"` }
type Job ¶
type Job struct {
AllowPrivilegedDocker bool `mapstructure:"allow_privileged_docker" json:"allow_privileged_docker"`
}
type Observability ¶ added in v0.5.0
type Observability struct { LogLevel string `mapstructure:"log_level" json:"log_level"` LogFile string `mapstructure:"log_file" json:"log_file"` MaxSize int `mapstructure:"max_size" json:"max_size"` // in megabytes MaxBackups int `mapstructure:"max_backups" json:"max_backups"` MaxAge int `mapstructure:"max_age" json:"max_age"` // in days ElasticsearchURL string `mapstructure:"elasticsearch_url" json:"elasticsearch_url"` ElasticsearchIndex string `mapstructure:"elasticsearch_index" json:"elasticsearch_index"` FlushInterval int `mapstructure:"flush_interval" json:"flush_interval"` // in seconds ElasticsearchEnabled bool `mapstructure:"elasticsearch_enabled" json:"elasticsearch_enabled"` // disable elastic logging ElasticsearchAPIKey string `mapstructure:"elasticsearch_api_key" json:"elasticsearch_api_key"` InsecureSkipVerify bool `mapstructure:"insecure_skip_verify" json:"insecure_skip_verify"` // allow insecure TLS connections }
Click to show internal directories.
Click to hide internal directories.