config

package
v0.0.0-...-6b7958e Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Version string
}

App struct field.

type Config

type Config struct {
	App App
	Log Log
}

Config struct field.

func Initialize

func Initialize() *Config

Initialize new instance.

func Must

func Must() *Config

func New

func New() *Config

New create config.

func ReadConfig

func ReadConfig() (*Config, error)

ReadConfig read values and files for config.

type Configurer

type Configurer interface {
	ReadConfig() (*Config, error)
}

Configurer methods for config.

type Log

type Log struct {
	Provider string `env:"LOG_PROVIDER" envDefault:"zap"`
}

Jump to

Keyboard shortcuts

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