common

package
v0.0.0-...-3a56714 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const AnswerMaybe = "maybe"
View Source
const AnswerNo = "no"
View Source
const AnswerYes = "yes"

Variables

This section is empty.

Functions

func CloseOtelProvider

func CloseOtelProvider()

func CompareHashAndPassword

func CompareHashAndPassword(hashedPassword []byte, password string) error

func Debug

func Debug(message string, args ...interface{})

func Decrypt

func Decrypt(data []byte) string

func Encrypt

func Encrypt(data string) []byte

func Error

func Error(message string, args ...interface{})

func Fatal

func Fatal(message string, args ...interface{})

func GenerateCode

func GenerateCode() string

func GenerateFromPassword

func GenerateFromPassword(password string) ([]byte, error)

func GenerateUUID

func GenerateUUID() string

func GetConfigBool

func GetConfigBool(key string) bool

func GetConfigInt

func GetConfigInt(key string) int

func GetConfigString

func GetConfigString(key string) string

func Info

func Info(message string, args ...interface{})

func InitOtelProvider

func InitOtelProvider()

func InitializeLogger

func InitializeLogger() error

func InitializeTranslations

func InitializeTranslations()

func Log

func Log(level, message string, args ...interface{})

func ReadConfig

func ReadConfig()

func StringInBothSlices

func StringInBothSlices(a, b []string) bool

Returns true if both slices have at list one element in common

func StringInSlice

func StringInSlice(a string, list []string) bool

func Translate

func Translate(word, language string) string

func Warn

func Warn(message string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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