Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer interface { // Output gets messages until the given date. Output(endTime time.Time) (<-chan Messages, <-chan error) // Close closes the producer. Close() error // IsHealthy checks the health of the Consumer. IsHealthy() bool }
Consumer represents a class that can consume messages.
func NewS3Consumer ¶
NewS3Consumer creates a consumer that gets messages to AWS S3.
type Error ¶
Error is the error type returned by a Producer when an error occurs while sending messages.
type Producer ¶
type Producer interface { // Name is the name of the producer. Name() string // Input is the message input channel. Input() chan<- *Message // Errors is the error output channel. Errors() <-chan *Error // Close closes the producer. Close() error // IsHealthy checks the health of the producer. IsHealthy() bool }
Producer represents a class that can send messages.
func NewKafkaProducer ¶
NewKafkaProducer creates a new producer that sends messages to Kafka.
func NewS3Producer ¶
NewS3Producer creates a producer that sends messages to AWS S3.
Click to show internal directories.
Click to hide internal directories.