Documentation
¶
Index ¶
- func Feature(config ...func(installer *Installer)) miruken.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 Provider
- 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 Source ¶ added in v0.26.0
func Source( handler miruken.Handler, src any, constraints ...any, ) (o *Outcome, po *promise.Promise[*Outcome], err error)
Source performs all validations on `src`.
func (*Outcome) FieldErrors ¶
func (*Outcome) RequirePath ¶
Click to show internal directories.
Click to hide internal directories.