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.
Click to show internal directories.
Click to hide internal directories.