meta

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 2 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   int32
	Rack string
}

A cluster broker

type Brokers

type Brokers []Broker

A slice of Broker

func (Brokers) BrokersByRack

func (b Brokers) BrokersByRack() map[string][]int32

A map of brokers by non-empty broker rack ID

func (Brokers) Ids

func (b Brokers) Ids() []int32

A slice of the broker IDs

func (Brokers) Racks

func (b Brokers) Racks() []string

A unique, sorted slice of non-empty broker rack IDs

func (Brokers) RacksByBroker

func (b Brokers) RacksByBroker() map[int32]string

A map of racks by broker ID

type PartitionReassignment

type PartitionReassignment struct {
	Partition        int32   `json:"partition"`
	Replicas         []int32 `json:"replicas"`
	AddingReplicas   []int32 `json:"addingReplicas"`
	RemovingReplicas []int32 `json:"removingReplicas"`
}

A partition reassignment

type PartitionReassignments

type PartitionReassignments []PartitionReassignment

A slice of PartitionReassignment

func (PartitionReassignments) Sort

func (p PartitionReassignments) Sort()

Sort by partition ID

Jump to

Keyboard shortcuts

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