startup_kafka

package
v2.3.32 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer added in v2.2.17

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

func NewConsumer added in v2.2.17

func NewConsumer(options ConsumerOptions) *Consumer

func (*Consumer) Close added in v2.2.17

func (c *Consumer) Close() error

func (*Consumer) Run added in v2.2.17

func (c *Consumer) Run()

type ConsumerOptions added in v2.2.17

type ConsumerOptions struct {
	KafkaAddresses     []string
	KafkaConsumerGroup string
	KafkaOffsetReset   string

	SchemaRegistry *avro.SchemaRegistry
}

type KafkaOptions

type KafkaOptions struct {
	KafkaAddresses        []string `` /* 155-byte string literal not displayed */
	KafkaConsumerGroup    string   `` /* 131-byte string literal not displayed */
	KafkaOffsetReset      string   `long:"kafka-offset-reset" default:"smallest" description:"Offset reset for kafka topic" choice:"smallest" choice:"largest"`
	KafkaSecurityProtocol string   `long:"kafka-security-protocol" default:"ssl" description:"Security protocol" choice:"ssl" choice:"plaintext"`
}

KafkaOptions provides simple flags for to create a kafka consumer

func (KafkaOptions) NewConsumer added in v2.2.41

func (opts KafkaOptions) NewConsumer(config kafka.ConfigMap) *kafka.Consumer

Jump to

Keyboard shortcuts

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