Documentation
¶
Index ¶
- func Feature(config ...func(*Installer)) miruken.Feature
- type Installer
- type Rules
- type Validator
- func (v *Validator) ConstructWithRules(rules Rules, configure func(*play.Validate) error, translator ut.Translator) error
- func (v *Validator) Constructor(validate *play.Validate, _ *struct{ args.Optional }, translator ut.Translator)
- func (v *Validator) Validate(target any, outcome *validates.Outcome) miruken.HandleResult
- func (v *Validator) ValidateAndStop(target any, outcome *validates.Outcome) miruken.HandleResult
- type ValidatorT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer integrates validation support for the go playground validator. https://github.com/go-playground/validator/
func (*Installer) UseTranslator ¶
func (v *Installer) UseTranslator(translator ut.Translator)
type Rules ¶
Rules express the validation constraints explicitly without depending on validation struct tags.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator provides core validation behavior.
func (*Validator) ConstructWithRules ¶
func (*Validator) Constructor ¶
func (*Validator) ValidateAndStop ¶
type ValidatorT ¶ added in v0.25.0
ValidatorT extends validation for a specific type.
func (*ValidatorT[T]) Validate ¶ added in v0.25.0
func (v *ValidatorT[T]) Validate( validate *validates.It, t T, ) miruken.HandleResult
Click to show internal directories.
Click to hide internal directories.