common

package
v0.0.0-...-2731b44 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIntFromConfig

func GetIntFromConfig(key string) int

func GetLogLevel

func GetLogLevel() string

func GetStringFromConfig

func GetStringFromConfig(key string) string

Helper function

func GetSubConfig

func GetSubConfig(key string) *viper.Viper

func InitConfig

func InitConfig()

func InitLog

func InitLog()

func LogDebug

func LogDebug(msg string, fields log.Fields)

func LogDebugFmt

func LogDebugFmt(err string, a ...interface{})

func LogError

func LogError(msg string, fields log.Fields)

func LogFatal

func LogFatal(msg string, fields log.Fields)

func LogInfo

func LogInfo(msg string, fields log.Fields)

func LogInfoFmt

func LogInfoFmt(err string, a ...interface{})

func LogPanic

func LogPanic(msg string, fields log.Fields)

func LogTrace

func LogTrace(msg string, fields log.Fields)

func LogWarn

func LogWarn(msg string, fields log.Fields)

Types

This section is empty.

Jump to

Keyboard shortcuts

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