Metadata

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(topics []string) *api.Request

Types

type Broker

type Broker struct {
	NodeId int32
	Host   string
	Port   int32
	Rack   string
}

func (*Broker) Addr

func (b *Broker) Addr() string

func (*Broker) String added in v0.0.9

func (b *Broker) String() string

type PartitionMetadata

type PartitionMetadata struct {
	ErrorCode       int16
	Partition       int32
	Leader          int32
	Replicas        []int32
	Isr             []int32
	OfflineReplicas []int32
}

type Request

type Request struct {
	Topics                 []string
	AllowAutoTopicCreation bool
}

type Response

type Response struct {
	ThrottleTimeMs int32
	Brokers        []Broker
	ClusterId      string
	ControllerId   int32
	TopicMetadata  []TopicMetadata
}

func (*Response) Broker

func (r *Response) Broker(id int32) *Broker

func (*Response) Leaders

func (r *Response) Leaders(topic string) map[int32]*Broker

func (*Response) Partitions added in v0.0.3

func (r *Response) Partitions(topic string) map[int32]*PartitionMetadata

type TopicMetadata

type TopicMetadata struct {
	ErrorCode         int16
	Topic             string
	IsInternal        bool
	PartitionMetadata []PartitionMetadata
}

Jump to

Keyboard shortcuts

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