shiva

package module
v0.0.0-...-6c77b72 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

Shiva

Final Fantasy - Shiva

Shiva is a modul

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcknowledgementStrategy

type AcknowledgementStrategy uint
const (
	// AtMostOnce configures the Consumer to acknowledge the message after the
	// Consumer receives the Message but before it is passed to the MessageHandler
	// to process the message.
	AtMostOnce  AcknowledgementStrategy = 1
	AtLeastOnce AcknowledgementStrategy = 2
)

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(brokers []string, groupID string, topic string) (*Consumer, error)

func (*Consumer) Close

func (c *Consumer) Close() error

func (*Consumer) Consume

func (c *Consumer) Consume() error

type Logger

type Logger interface {
	Debug(msg string, keysAndValues ...any)
	Info(msg string, keysAndValues ...any)
	Warn(msg string, keysAndValues ...any)
	Error(msg string, keysAndValues ...any)
}

type Message

type Message = kafka.Message

type MessageHandler

type MessageHandler interface {
	ProcessMessage(msg Message) error
}

MessageHandler is a type that processes message read from Kafka

type MessageHandlerFunc

type MessageHandlerFunc func(msg Message) error

func (MessageHandlerFunc) ProcessMessage

func (m MessageHandlerFunc) ProcessMessage(msg Message) error

Jump to

Keyboard shortcuts

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