kafka

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaUtil

type KafkaUtil struct {
	KafkaClient sarama.Client
	BrokerList  []string
	ClusterName string
	KazooClient *kazoo.Kazoo
}

func New

func New(clusterSpec spec.Kafkacluster) (*KafkaUtil, error)

func (*KafkaUtil) AllTopicsInSync

func (k *KafkaUtil) AllTopicsInSync() (bool, error)

func (*KafkaUtil) CreateTopic

func (k *KafkaUtil) CreateTopic(topicSpec spec.KafkaTopicSpec) error

func (*KafkaUtil) GetPartitions

func (k *KafkaUtil) GetPartitions(topic string) ([]int32, error)

func (*KafkaUtil) GetTopicConfiguration

func (k *KafkaUtil) GetTopicConfiguration(cluster spec.Kafkacluster) ([]spec.KafkaTopic, error)

func (*KafkaUtil) GetTopicsOnBroker

func (k *KafkaUtil) GetTopicsOnBroker(cluster spec.Kafkacluster, brokerId int32) ([]string, error)

func (*KafkaUtil) ListTopics

func (k *KafkaUtil) ListTopics() ([]string, error)

func (*KafkaUtil) PrintFullStats

func (k *KafkaUtil) PrintFullStats() error

func (*KafkaUtil) RemoveTopicFromBrokers

func (k *KafkaUtil) RemoveTopicFromBrokers(cluster spec.Kafkacluster, brokerToDelete int32, topic string) error

func (*KafkaUtil) RemoveTopicsFromBrokers

func (k *KafkaUtil) RemoveTopicsFromBrokers(cluster spec.Kafkacluster, brokerToDelete int32) error

Jump to

Keyboard shortcuts

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