config

package
v0.0.0-...-9d48049 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Unlicense Imports: 2 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 {
	HTTP HTTP
	DB   DB
}

func New

func New(ctx context.Context) (*Config, error)

New constructs the config. variables are populated using the envars and default values.

type DB

type DB struct {
	Path string `env:"DB_PATH, default=data/agg.db"`
}

type HTTP

type HTTP struct {
	Port int `env:"HTTP_PORT, default=3000"`
}

Jump to

Keyboard shortcuts

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