config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PREFIX = "INCLUSION_PROVER"

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseNetworkConfig

type BaseNetworkConfig struct {
	Endpoint string `required:"true"`
	Key      string `required:"true"`
}

type Config

type Config struct {
	Observability *Observability   `env_config:"observability"`
	Store         *Store           `env_config:"store"`
	Domains       map[uint8]string `required:"true"`
}

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig loads config from the environment and validates the fields

type Observability

type Observability struct {
	LogLevel   string `default:"debug" split_words:"true"`
	LogFile    string `default:"out.log" split_words:"true"`
	HealthPort uint16 `default:"9001" split_words:"true"`
}

type Store

type Store struct {
	Path string `default:"./lvldbdata"`
}

Jump to

Keyboard shortcuts

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