util

package
v0.0.0-...-bf40b24 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Provisioner = "provisioner"

Variables

This section is empty.

Functions

func LoggerFromContext

func LoggerFromContext(ctx context.Context) (*otelzap.Logger, error)

func PGFromContext

func PGFromContext(ctx context.Context) (*gorm.DB, error)

Types

type CtxKey

type CtxKey string
const (
	Logger   CtxKey = "logger"
	Postgres CtxKey = "postgres"
	Cfg      CtxKey = "config"
)

Jump to

Keyboard shortcuts

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