Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyMapFunc ¶
type ApplyMapFunc func(context.Context, *isb.ReadMessage) ([]*isb.WriteMessage, error)
ApplyMapFunc utility function used to create a MapApplier implementation
func (ApplyMapFunc) ApplyMap ¶
func (f ApplyMapFunc) ApplyMap(ctx context.Context, message *isb.ReadMessage) ([]*isb.WriteMessage, error)
type ApplyMapStreamFunc ¶ added in v0.10.0
type ApplyMapStreamFunc func(context.Context, *isb.ReadMessage, chan<- isb.WriteMessage) error
ApplyMapStreamFunc utility function used to create a MapStreamApplier implementation
func (ApplyMapStreamFunc) ApplyMapStream ¶ added in v0.10.0
func (f ApplyMapStreamFunc) ApplyMapStream(ctx context.Context, message *isb.ReadMessage, writeMessageCh chan<- isb.WriteMessage) error
type MapApplier ¶
type MapApplier interface {
ApplyMap(ctx context.Context, message *isb.ReadMessage) ([]*isb.WriteMessage, error)
}
MapApplier applies the map UDF on the read message and gives back a new message. Any UserError will be retried here, while InternalErr can be returned and could be retried by the callee.
type MapStreamApplier ¶ added in v0.10.0
type MapStreamApplier interface {
ApplyMapStream(ctx context.Context, message *isb.ReadMessage, writeMessageCh chan<- isb.WriteMessage) error
}
MapStreamApplier applies the map stream udf on the read message and gives back response. Any UserError will be retried here, while InternalErr can be returned and could be retried by the callee.
Click to show internal directories.
Click to hide internal directories.