conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckValue

func CheckValue(db *gorm.DB, key, defaultValue string)

func GetBoolEnv

func GetBoolEnv(key string) bool

func GetBoolValue

func GetBoolValue(db *gorm.DB, key string) bool

func GetEnv

func GetEnv(key string) string

func GetIntEnv

func GetIntEnv(key string) int

func GetIntValue

func GetIntValue(db *gorm.DB, key string, defaultVal int) int

func GetValue

func GetValue(db *gorm.DB, key string) string

func LoadEnvs

func LoadEnvs(objPtr any)

load envs to struct

func LookupEnv

func LookupEnv(key string) (string, bool)

func ReadConf

func ReadConf()

func SetValue

func SetValue(db *gorm.DB, 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