events

package
v0.0.0-...-abe6acf Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventsConsumer

func NewEventsConsumer(cfg KafkaReaderConfig, logger *logrus.Logger, repo CastsRepository) *eventsConsumer

Types

type CastsRepository

type CastsRepository interface {
	DeleteCast(ctx context.Context, id int32) error
	RemovePersonFromCasts(ctx context.Context, personID int32) (err error)
}

type KafkaReaderConfig

type KafkaReaderConfig struct {
	Brokers          []string
	GroupID          string
	ReadBatchTimeout time.Duration
}

type KafkaWriterConfig

type KafkaWriterConfig struct {
	Brokers []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳