config

package
v0.0.0-...-d5572aa Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT 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 {
	ServerAddress string `env:"SERVER_ADDRESS" envDefault:":8080"`
	DataDir       string `env:"DATA_DIR,required"`

	JWT struct {
		Secret   string        `env:"JWT_SECRET,required"`
		TokenTTL time.Duration `env:"JWT_TOKEN_TTL" envDefault:"1h"`
	}
}

func Load

func Load() (config Config, _ error)

Jump to

Keyboard shortcuts

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