Documentation ¶
Index ¶
- Constants
- Variables
- func Compress(src []byte) []byte
- func CreateContext() context.Context
- func CreateLogger(d bool) *zap.Logger
- func GetBoolEnvWithDefault(key string, defaultValue bool) bool
- func GetEnvWithDefault(key string, defaultValue string) string
- func IsDocker() bool
- func LogWithCtx(ctx context.Context) *zap.Logger
- func RecoverFunction(funcName string)
- func StartDebugServer()
Constants ¶
View Source
const (
LoggerKey = "K_LOGGER"
)
Variables ¶
View Source
var ZSTDEncoder *zstd.Encoder
Functions ¶
func CreateContext ¶
func CreateLogger ¶
func GetBoolEnvWithDefault ¶
func GetEnvWithDefault ¶
func RecoverFunction ¶
func RecoverFunction(funcName string)
func StartDebugServer ¶
func StartDebugServer()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.