validation

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidationStateInt = map[string]ValidationState{
	"error":   ValidationStateError,
	"warning": ValidationStateWarning,
	"success": ValidationStateSuccess,
}
View Source
var ValidationStateName = map[ValidationState]string{
	ValidationStateError:   "error",
	ValidationStateWarning: "warning",
	ValidationStateSuccess: "success",
}

Functions

This section is empty.

Types

type RuleValidationResult added in v1.2.0

type RuleValidationResult struct {
	Rule    string
	State   ValidationState
	Message string
}

type ValidationResult

type ValidationResult []RuleValidationResult

type ValidationRuleConfig

type ValidationRuleConfig struct {
	Always bool
	Level  ValidationState
	Value  any
}

type ValidationState

type ValidationState int
const (
	ValidationStateSuccess ValidationState = iota
	ValidationStateWarning
	ValidationStateError
)

type ValidationsResult

type ValidationsResult map[ValidationState][]RuleValidationResult

type ValidatorConfig

type ValidatorConfig map[string]ValidationRuleConfig

Jump to

Keyboard shortcuts

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