checker

package
v0.25.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidateFunc

type ValidateFunc func(any) error

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(c ...ValidatorCheck) Validator

func (Validator) AddChecks

func (v Validator) AddChecks(c ...ValidatorCheck) Validator

func (Validator) Validate

func (v Validator) Validate(resource any) error

type ValidatorCheck

type ValidatorCheck struct {
	// contains filtered or unexported fields
}

func NewValidatorCheck

func NewValidatorCheck(name string, f ValidateFunc) ValidatorCheck

Jump to

Keyboard shortcuts

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