middleware

package
v1.0.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TranslateValidate

type TranslateValidate struct {
	*ut.UniversalTranslator
	*validator.Validate
}

func (*TranslateValidate) BadRequest

func (tv *TranslateValidate) BadRequest(ctx *gin.Context, err error)

func (*TranslateValidate) HandleError

func (tv *TranslateValidate) HandleError(ctx *gin.Context, err error)

func (*TranslateValidate) ValidateHeaders

func (tv *TranslateValidate) ValidateHeaders(headerTagMap map[string]string) gin.HandlerFunc

Jump to

Keyboard shortcuts

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