Documentation
¶
Index ¶
- func Feature(config ...func(*Installer)) setup.Feature
- func Groups(groups ...any) miruken.Constraint
- func Output(installer *Installer)
- type Builder
- type Group
- type Installer
- type It
- func (v *It) Dispatch(handler any, greedy bool, composer miruken.Handler) miruken.HandleResult
- func (v *It) Groups() []any
- func (v *It) InGroup(group any) bool
- func (v *It) Key() any
- func (v *It) Outcome() *Outcome
- func (v *It) Policy() miruken.Policy
- func (v *It) Source() any
- func (v *It) String() string
- type Outcome
- type Required
- func (r *Required) AppliesTo(callback miruken.Callback) bool
- func (r *Required) Filters(binding miruken.Binding, callback any, composer miruken.Handler) ([]miruken.Filter, error)
- func (r *Required) InitWithTag(tag reflect.StructTag) error
- func (r *Required) Required() bool
- func (r *Required) ValidateOutput() bool
- type Strict
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Groups ¶
func Groups(groups ...any) miruken.Constraint
Groups builds a validation Group constraint.
Types ¶
type Builder ¶
type Builder struct { miruken.CallbackBuilder // contains filtered or unexported fields }
Builder builds It callbacks.
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group marks a set of related validations.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer enables validation support.
type It ¶
type It struct { miruken.CallbackBase // contains filtered or unexported fields }
It validates callbacks contravariantly.
type Outcome ¶
type Outcome struct {
// contains filtered or unexported fields
}
Outcome captures structured validation errors.
func Constraints ¶ added in v0.30.1
func Constraints( handler miruken.Handler, source any, constraints ...any, ) (o *Outcome, po *promise.Promise[*Outcome], err error)
Constraints performs all validations on `source`.
func (*Outcome) FieldErrors ¶
func (*Outcome) RequirePath ¶
type Required ¶ added in v0.30.6
type Required struct {
// contains filtered or unexported fields
}
Required is a FilterProvider for validation.
func (*Required) InitWithTag ¶ added in v0.30.6
func (*Required) ValidateOutput ¶ added in v0.30.6
Click to show internal directories.
Click to hide internal directories.