Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
Consumer Consumer
}
Application represents the transporter application.
func NewApplication ¶
func NewApplication() *Application
NewApplication creates an instance of Application.
func (*Application) GetNextBatch ¶ added in v1.0.0
GetNextBatch gets the next count messages from the queue.
func (*Application) GetNextMessage ¶
GetNextMessage gets the next message from the queue.
func (*Application) IsHealthy ¶
func (a *Application) IsHealthy() error
IsHealthy checks the health of the Application.
type Consumer ¶
type Consumer interface { // Close closes the Consumer. Close() // GetNextMessage gets the next message from the queue. GetNextMessage(ctx context.Context, topic string) ([]byte, error) // GetNextBatch gets the next count messages from the queue. GetNextBatch(ctx context.Context, topic string, count int) ([][]byte, error) }
Consumer represents a queued Kafka consumer.
Click to show internal directories.
Click to hide internal directories.