kafka

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize added in v0.2.0

func Initialize(p Params) *buffer

Types

type KafkaWriter added in v0.2.0

type KafkaWriter interface {
	WriteMessages(ctx context.Context, msgs ...gokafka.Message) error
}

type Message added in v0.2.0

type Message struct {
	Topic   string `json:"topic"`
	Content []byte `json:"content"`
}

type MessageChan added in v0.2.0

type MessageChan chan Message

type Params added in v0.2.0

type Params struct {
	Broker           string
	Port             int
	Channel          MessageChan
	BatchSize        int
	MaxBatchSize     int
	Interval         time.Duration
	Topic            string
	ObsChannel       observability.Channel
	RetryInterval    time.Duration
	TestMessageTopic string
	LogLevel         log.LogLevel
}

Jump to

Keyboard shortcuts

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