config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyDB            = "admin.config.gorm.db"
	KeyNoCheckRouter = "admin.config.router.nocheck"
	KeyCheckRouter   = "admin.config.router.check"
)

Variables

This section is empty.

Functions

func CheckConfig

func CheckConfig()

func CheckValue

func CheckValue(key, defaultValue string)

func GetBoolEnv

func GetBoolEnv(key string) bool

func GetBoolValue

func GetBoolValue(key string) bool

func GetEnv

func GetEnv(key string) string

func GetIntEnv

func GetIntEnv(key string) int

func GetIntValue

func GetIntValue(key string, defaultVal int) int

func GetValue

func GetValue(key string) string

func LoadEnvs

func LoadEnvs(objPtr any)

LoadEnvs load envs to struct

func LookupEnv

func LookupEnv(key string) (string, bool)

func SetValue

func SetValue(key, value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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