electleaders

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	ElectionType    int8                     `kafka:"min=v1,max=v1"`
	TopicPartitions []RequestTopicPartitions `kafka:"min=v0,max=v1"`
	TimeoutMs       int32                    `kafka:"min=v0,max=v1"`
}

Detailed API definition: https://kafka.apache.org/protocol#The_Messages_ElectLeaders

func (*Request) ApiKey

func (r *Request) ApiKey() protocol.ApiKey

func (*Request) Broker

func (r *Request) Broker(cluster protocol.Cluster) (protocol.Broker, error)

type RequestTopicPartitions

type RequestTopicPartitions struct {
	Topic        string  `kafka:"min=v0,max=v1"`
	PartitionIDs []int32 `kafka:"min=v0,max=v1"`
}

type Response

type Response struct {
	ThrottleTime           int32                           `kafka:"min=v0,max=v1"`
	ErrorCode              int16                           `kafka:"min=v1,max=v1"`
	ReplicaElectionResults []ResponseReplicaElectionResult `kafka:"min=v0,max=v1"`
}

func (*Response) ApiKey

func (r *Response) ApiKey() protocol.ApiKey

type ResponsePartitionResult

type ResponsePartitionResult struct {
	PartitionID  int32  `kafka:"min=v0,max=v1"`
	ErrorCode    int16  `kafka:"min=v0,max=v1"`
	ErrorMessage string `kafka:"min=v0,max=v1,nullable"`
}

type ResponseReplicaElectionResult

type ResponseReplicaElectionResult struct {
	Topic            string                    `kafka:"min=v0,max=v1"`
	PartitionResults []ResponsePartitionResult `kafka:"min=v0,max=v1"`
}

Jump to

Keyboard shortcuts

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