Documentation
¶
Index ¶
- type Concurrent
- type Error
- type Outcome
- type Sequential
- type SurrogateMapper
- func (m *SurrogateMapper) New(_ ..., create *creates.It) any
- func (m *SurrogateMapper) ReplaceConcurrent(_ ..., batch api.ConcurrentBatch, ctx miruken.HandleContext) (byt []byte, err error)
- func (m *SurrogateMapper) ReplaceError(_ ..., err error, ctx miruken.HandleContext) ([]byte, error)
- func (m *SurrogateMapper) ReplaceOutcome(_ ..., outcome *validates.Outcome, ctx miruken.HandleContext) ([]byte, error)
- func (m *SurrogateMapper) ReplaceSequential(_ ..., batch api.SequentialBatch, ctx miruken.HandleContext) (byt []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Concurrent ¶ added in v0.26.0
type Concurrent []any
Concurrent is a surrogate for api.ConcurrentBatch over json.
type Error ¶ added in v0.26.0
type Error struct {
Message string
}
Error is a surrogate for a generic error over json.
type Sequential ¶ added in v0.26.0
type Sequential []any
Sequential is a surrogate for api.SequentialBatch over json.
type SurrogateMapper ¶ added in v0.22.0
type SurrogateMapper struct{}
SurrogateMapper maps concepts to values that are more suitable for transmission over a json api. The replacement type usually implements api.Surrogate to allow infrastructure to obtain the original value using the Original() method.
func (*SurrogateMapper) ReplaceConcurrent ¶ added in v0.22.0
func (m *SurrogateMapper) ReplaceConcurrent( _ *struct { maps.It maps.Format `to:"application/json"` }, batch api.ConcurrentBatch, ctx miruken.HandleContext, ) (byt []byte, err error)
func (*SurrogateMapper) ReplaceError ¶ added in v0.22.0
func (m *SurrogateMapper) ReplaceError( _ *struct { maps.It maps.Format `to:"application/json"` }, err error, ctx miruken.HandleContext, ) ([]byte, error)
func (*SurrogateMapper) ReplaceOutcome ¶ added in v0.22.0
func (*SurrogateMapper) ReplaceSequential ¶ added in v0.25.0
func (m *SurrogateMapper) ReplaceSequential( _ *struct { maps.It maps.Format `to:"application/json"` }, batch api.SequentialBatch, ctx miruken.HandleContext, ) (byt []byte, err error)
Click to show internal directories.
Click to hide internal directories.