kafcat

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaderInfo

type LeaderInfo struct {
	ID      int32
	Address string
}

type OffsetInfo

type OffsetInfo struct {
	Oldest int64
	Newest int64
}

type PartitionInfo

type PartitionInfo struct {
	Leader         *LeaderInfo `yaml:",omitempty"`
	Offsets        *OffsetInfo `yaml:",omitempty"`
	Writable       *bool       `yaml:",omitempty"`
	Replicas       []int32     `yaml:",omitempty,flow"`
	InSyncReplicas []int32     `yaml:",omitempty,flow"`
}

type TopicInfo

type TopicInfo struct {
	Name         string
	Partitions   map[int32]PartitionInfo `yaml:",omitempty"`
	PartitionIds []int32                 `yaml:",omitempty,flow"`
}

func GetTopicInfos

func GetTopicInfos(client sarama.Client, partitions, leader, offsets, writable, isr, replicas bool) ([]TopicInfo, error)

Jump to

Keyboard shortcuts

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