kafka

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize() error

TODO: Broker connection close logic

defer func() {
	if err := kafka.Close(); err != nil {
		panic(err)
	}
}()

Types

type KafkaStruct

type KafkaStruct struct {
	AdminClient *kafka.AdminClient
	L           *sync.RWMutex
}

func GetInstance

func GetInstance() (*KafkaStruct, error)

func (*KafkaStruct) DeleteTopics

func (k *KafkaStruct) DeleteTopics(topics []string) error

func (*KafkaStruct) GetAllTopics

func (k *KafkaStruct) GetAllTopics() []string

Jump to

Keyboard shortcuts

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