libapp

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger added in v0.0.6

func GetLogger() log.Logger

Types

type Env added in v0.0.10

type Env string
const (
	EnvCreateAdmin Env = "CREATE_ADMIN"
	EnvLogLevel    Env = "LOG_LEVEL"
)

type Flags added in v0.0.10

type Flags struct {
	ConfPath string
	DataPath string
}

type InherentSettings added in v0.0.10

type InherentSettings struct {
	EnablePanicRecovery bool
	LogLevel            libzap.Level
	DefaultConfPath     string
}

type Settings added in v0.0.10

type Settings struct {
	InherentSettings
	Flags
	// contains filtered or unexported fields
}

func NewAppSettings added in v0.0.10

func NewAppSettings(id, name, version string) (*Settings, error)

func (*Settings) GetEnv added in v0.0.10

func (a *Settings) GetEnv(env Env) (string, error)

func (*Settings) GetEnvBool added in v0.0.10

func (a *Settings) GetEnvBool(env Env) (bool, error)

func (*Settings) LoadConfig added in v0.0.10

func (a *Settings) LoadConfig(conf interface{})

Jump to

Keyboard shortcuts

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