config

package
v0.3.23 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 8 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 {
	Name    string `env:"APP_NAME"    env-required:"true" env-description:"app name"`
	Version string `env:"APP_VERSION" env-required:"true" env-description:"app version"`
	Debug   bool   `env:"APP_DEBUG"   env-description:"debugging app"`

	UserConfigPath string
	LogsPath       string
	StorageDir     string

	MessageClearAfterSeconds int
}

func New

func New() (Config, error)

New returns new app config.

func NewDefaultConfig added in v0.2.0

func NewDefaultConfig() Config

Jump to

Keyboard shortcuts

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