Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineDecoder ¶ added in v0.2.0
func DetermineDecoder(contentType string) (encoding.DecodeRawFunc, error)
DetermineDecoder determines the decoder based on the content type.
Types ¶
type Component ¶ added in v0.4.2
Component implementation of a async component.
func New ¶ added in v0.4.2
func New(p ProcessorFunc, cns Consumer) (*Component, error)
New returns a new async component.
type Consumer ¶ added in v0.4.2
type Consumer interface {
Consume(context.Context) (<-chan Message, <-chan error, error)
Close() error
}
Consumer interface which every specific consumer has to implement.
type Message ¶ added in v0.2.0
type Message interface {
Context() context.Context
Decode(v interface{}) error
Ack() error
Nack() error
}
Message interface for defining messages that are handled by the async component.
type ProcessorFunc ¶ added in v0.3.1
ProcessorFunc definition of a async processor.
Click to show internal directories.
Click to hide internal directories.