queue

package
v0.0.0-...-fe06dec Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartConsumer

func StartConsumer(cfg *ConsumerConfig) (*kafka.Reader, error)

func StartProducer

func StartProducer(cfg *ProducerConfig) (*kafka.Writer, error)

Types

type ConsumerConfig

type ConsumerConfig struct {
	Brokers        []string
	SaslConfig     *SaslConfig
	Topic          string
	GroupID        string
	ConsumerOffset int64
}

func (ConsumerConfig) String

func (this ConsumerConfig) String() string

type ProducerConfig

type ProducerConfig struct {
	Brokers    []string
	SaslConfig *SaslConfig
	Topic      string
	BatchSize  int
	BatchBytes int
	Balancer   string
}

func (ProducerConfig) String

func (this ProducerConfig) String() string

type SaslConfig

type SaslConfig struct {
	SaslMechanism string
	SaslUsername  string
	SaslPassword  string
	KafkaCA       string
}

func (SaslConfig) String

func (this SaslConfig) String() string

Jump to

Keyboard shortcuts

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