validations

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: GPL-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRuleSet

type IRuleSet map[string]map[int64][]*ValidationTarget

type ValidationClause

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

func NewValidationClause

func NewValidationClause(parent *Validations, target *ValidationTarget, precondition bool) *ValidationClause

func (*ValidationClause) IsEqual

func (vc *ValidationClause) IsEqual(expected interface{}, message string) *ValidationTarget

func (*ValidationClause) IsNotEmpty

func (vc *ValidationClause) IsNotEmpty(message string) *ValidationTarget

func (*ValidationClause) IsNotEqual

func (vc *ValidationClause) IsNotEqual(expected interface{}, message string) *ValidationTarget

func (*ValidationClause) IsNotNull

func (vc *ValidationClause) IsNotNull(message string) *ValidationTarget

func (*ValidationClause) IsNull

func (vc *ValidationClause) IsNull(message string) *ValidationTarget

type ValidationTarget

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

func NewValidationTarget

func NewValidationTarget(parent *Validations, enumName string, typ int64) *ValidationTarget

func (*ValidationTarget) Check

func (v *ValidationTarget) Check(targetProperty string) *ValidationClause

func (*ValidationTarget) When

func (v *ValidationTarget) When(targetProperty string) *ValidationClause

func (*ValidationTarget) With

func (v *ValidationTarget) With(property iflag.IFlag) *ValidationTarget

type Validations

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

func NewValidations

func NewValidations() *Validations

func (*Validations) Of

func (v *Validations) Of(typeVal int64) *ValidationTarget

func (*Validations) OfGeneral

func (v *Validations) OfGeneral(enumProperty string, typeVal int64) *ValidationTarget

func (*Validations) Validate

func (v *Validations) Validate(builder interface{}) error

Jump to

Keyboard shortcuts

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