client

package
v0.0.0-...-973c644 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaClient

type KafkaClient interface {
	ListTopics() ([]*models.Topic, error)
	CreateTopic(name string, partitions int32, replication int16) error
	DeleteTopic(name string) error
	DescribeTopic(name string) (*models.TopicDesc, error)
	ListNodes() ([]*models.Node, error)
	ListGroups() ([]*models.Group, error)
	DescribeGroup(name string) (*models.GroupDesc, error)
}

func NewKafkaClient

func NewKafkaClient(config *sarama.Config, brokers []string) KafkaClient

Jump to

Keyboard shortcuts

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