config

package
v0.0.0-...-531134c Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PREFIX = "SPECTRE"

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"`
	Prover        *Prover          `env_config:"prover"`
	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 Prover

type Prover struct {
	URL string `required:"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