loader

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEnvLoader

func NewEnvLoader() config.ConfigLoader

Types

type EnvConf

type EnvConf struct {
	ServerConf *env.ServerConf
	RedisConf  *env.RedisConf
	DBConf     *env.DBConf
}

func FromEnv

func FromEnv() (*EnvConf, error)

FromEnv generates a configuration from environment variables

type EnvConfigLoader

type EnvConfigLoader struct{}

func (*EnvConfigLoader) LoadConfig

func (e *EnvConfigLoader) LoadConfig() (res *config.Config, err error)

type EnvDecoderConf

type EnvDecoderConf struct {
	ServerConf env.ServerConf
	RedisConf  env.RedisConf
	DBConf     env.DBConf
}

Jump to

Keyboard shortcuts

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