applier

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL