Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain []Decorator
Chain is an ordered collection of Decorators.
func (Chain) Apply ¶
func (c Chain) Apply(base MessageProcessor) MessageProcessor
Apply wraps the given RoundTripper with the Decorator chain.
type Decorator ¶
type Decorator func(MessageProcessor) MessageProcessor
Decorator is a named type for any function that takes a RoundTripper and returns a RoundTripper.
type MessageProcessError ¶
MessageProcessError represents an error that can be used to indicate to the consumer that an error should be retried
type MessageProcessor ¶
type MessageProcessor interface {
ProcessMessage(ctx context.Context, record *kinesis.Record) MessageProcessError
}
MessageProcessor processes a consumed message. Implementors are responsible for unmarshalling the data
Click to show internal directories.
Click to hide internal directories.