util

package
v0.0.0-...-8dad1ad Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LoggerKey = "K_LOGGER"
)

Variables

View Source
var ZSTDEncoder *zstd.Encoder

Functions

func Compress

func Compress(src []byte) []byte

func CreateContext

func CreateContext() context.Context

func CreateLogger

func CreateLogger() *zap.Logger

func GetBoolEnvWithDefault

func GetBoolEnvWithDefault(key string, defaultValue bool) bool

func GetEnvWithDefault

func GetEnvWithDefault(key string, defaultValue string) string

func IsDocker

func IsDocker() bool

func LogWithCtx

func LogWithCtx(ctx context.Context) *zap.Logger

func RecoverFunction

func RecoverFunction(funcName string)

func StartDebugServer

func StartDebugServer()

Types

This section is empty.

Jump to

Keyboard shortcuts

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