tmvalerrs

package
v0.0.0-...-e46c3b8 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogAndReturnCtxErr

func LogAndReturnCtxErr(ctx *Ctx) ctxerr.Error

LogAndReturnCtxErr logs the error and transforms it in ctxerror.Error.

Types

type Ctx

type Ctx struct {
	Err    validator.ValidationErrors
	Logger *zap.Logger
	Msg    string
	Log    []zapcore.Field
}

Ctx is the data needed for LogAndReturnCtxErr.

Jump to

Keyboard shortcuts

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