kafka

package
v0.0.0-...-795570d Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(configuration *configuration.Configuration) *Config

type Consumer

type Consumer struct {
	Config *Config
	Client *kafka.Reader
}

func NewConsumer

func NewConsumer(config *Config) *Consumer

func (*Consumer) Close

func (r *Consumer) Close()

func (*Consumer) Consume

func (r *Consumer) Consume(event interface{}) error

type Producer

type Producer struct {
	Config *Config
	Client *kafka.Writer
}

func NewProducer

func NewProducer(config *Config) *Producer

func (*Producer) Close

func (w *Producer) Close()

func (*Producer) Produce

func (w *Producer) Produce(metadata *domain.Metadata, commentary *domain.Commentary, lineups *domain.Lineups)

Jump to

Keyboard shortcuts

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