validate

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validator

func Validator(validator RequestValidator) middleware.Middleware

Validator is a validator middleware.

Types

type RequestValidator

type RequestValidator interface {
	Validate(ctx context.Context, rq any) error
}

RequestValidator 定义了用于自定义验证的接口.

Jump to

Keyboard shortcuts

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