config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: BSD-3-Clause 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 {
	LogLevel  string `env:"LOGLEVEL" envDefault:"info"`
	RestAddr  string `env:"REST_ADDR" envDefault:":3123"`
	RestPath  string `env:"REST_PATH" envDefault:"/api/v2"`
	DataPath  string `env:"DATA_PATH" envDefault:"/tmp"`
	Token     string `env:"TOKEN"`
	DropTable string `env:"DROP_TABLE" envDefault:"false"`
	Version   string
	Hash      string
	Build     string
	Logger    *log.Logger
}

func Load

func Load() (*Config, error)

func MustLoad

func MustLoad() *Config

func (*Config) PrintBanner added in v0.0.3

func (c *Config) PrintBanner()

Jump to

Keyboard shortcuts

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