servicecommon

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBAccessMsg  = "Failed to access database"
	MongoCallMsg = "Failed during MongoDB call"
	RedisCallMsg = "Failed during Redis call"

	LangPlaceHolder = "{{lang}}"
)

Variables

View Source
var (
	ErrInternal        = errors.New("internal service error")
	ErrNolocales       = errors.New("no locales declared")
	ErrPictureNotFound = errors.New("picture not found")
)

Functions

func ConvertSlice added in v1.10.0

func ConvertSlice[T any, R any](docs []T, converter func(T) R) []R

Types

type LoggerGetter added in v1.10.0

type LoggerGetter interface {
	Logger(context.Context) *slog.Logger
}

Jump to

Keyboard shortcuts

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