validator

package
v0.0.0-...-5ced209 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidatorSet = wire.NewSet(wire.Struct(new(Validator), "*"))

Functions

This section is empty.

Types

type Validator

type Validator struct {
	Logger core.ILogger
	Redis  *redis.Client
}

func (*Validator) GenErrMsg

func (v *Validator) GenErrMsg(c *gin.Context, desc string, err error) error

func (*Validator) GenOkMsg

func (v *Validator) GenOkMsg(c *gin.Context, desc string) string

func (*Validator) ValidateHeaders

func (v *Validator) ValidateHeaders() gin.HandlerFunc

Jump to

Keyboard shortcuts

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