validation

package
v0.0.0-...-58747f4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(ctx context.Context, validators ...Validator) error

Types

type Validator

type Validator interface {
	Validate(ctx context.Context) error
}

func EitherValidation

func EitherValidation(a Validator, b Validator) Validator

type ValidatorFunc

type ValidatorFunc func(ctx context.Context) error

func (ValidatorFunc) Validate

func (v ValidatorFunc) Validate(ctx context.Context) error

Jump to

Keyboard shortcuts

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