types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	ID   int
	Host string
	Port int
}

type ConsumerGroup

type ConsumerGroup struct {
	Name string
}

type LowHighOffset

type LowHighOffset struct {
	Low  int64 // the earliest offset
	High int64 // the latest offset
}

type Offset

type Offset struct {
	Topic      string
	Group      string // optional; used only when getting offsets for a consumer group
	Partitions map[int]LowHighOffset
}

type Partition

type Partition struct {
	ID       int
	Leader   int
	Replicas []int
	Isrs     []int // in-sync replicas
}

type Topic

type Topic struct {
	Name       string
	Partitions []Partition
}

Jump to

Keyboard shortcuts

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