kafcat

package
v0.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerMessage added in v0.1.5

type ConsumerMessage struct {
	Key, Value string
	Topic      string
	Partition  int32
	Offset     int64
	Timestamp  time.Time // only set if kafka is version 0.10+
}

type Formatter added in v0.1.5

type Formatter struct {
	Out      io.Writer
	ForceHex bool
}

func (*Formatter) FormatConsumerMessage added in v0.1.5

func (f *Formatter) FormatConsumerMessage(m *sarama.ConsumerMessage) error

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