validate

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context, payload interface{}) (string, error)

func InitValidate added in v0.0.3

func InitValidate(name string)

Types

type Inspector

type Inspector interface {
	Check(ctx context.Context, payload interface{}) (string, error)
}

func NewValidator

func NewValidator() Inspector

type Validator

type Validator struct {
	Instance *validator.Validate
}

func (*Validator) Check

func (c *Validator) Check(ctx context.Context, payload interface{}) (string, error)

Jump to

Keyboard shortcuts

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