messageprocessor

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

README

messageprocessor - An abstraction for consuming aws Kinesis messages

GoDoc Build Status codecov.io

Contributing

License

This project is licensed under Apache 2.0. See LICENSE.txt for details.

Contributing Agreement

Atlassian requires signing a contributor's agreement before we can accept a patch. If you are an individual you can fill out the individual CLA. If you are contributing on behalf of your company then please fill out the corporate CLA.

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

type MessageProcessError interface {
	IsRetryable() bool
	Error() error
}

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

Jump to

Keyboard shortcuts

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