fetch

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 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 Error

type Error struct {
	Err error
}

func NewError

func NewError(err error) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type Request

type Request struct {
	ReplicaID       int32                   `kafka:"min=v0,max=v11"`
	MaxWaitTime     int32                   `kafka:"min=v0,max=v11"`
	MinBytes        int32                   `kafka:"min=v0,max=v11"`
	MaxBytes        int32                   `kafka:"min=v3,max=v11"`
	IsolationLevel  int8                    `kafka:"min=v4,max=v11"`
	SessionID       int32                   `kafka:"min=v7,max=v11"`
	SessionEpoch    int32                   `kafka:"min=v7,max=v11"`
	Topics          []RequestTopic          `kafka:"min=v0,max=v11"`
	ForgottenTopics []RequestForgottenTopic `kafka:"min=v7,max=v11"`
	RackID          string                  `kafka:"min=v11,max=v11"`
}

func (*Request) ApiKey

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

func (*Request) Broker

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

type RequestForgottenTopic

type RequestForgottenTopic struct {
	Topic      string  `kafka:"min=v7,max=v11"`
	Partitions []int32 `kafka:"min=v7,max=v11"`
}

type RequestPartition

type RequestPartition struct {
	Partition          int32 `kafka:"min=v0,max=v11"`
	CurrentLeaderEpoch int32 `kafka:"min=v9,max=v11"`
	FetchOffset        int64 `kafka:"min=v0,max=v11"`
	LogStartOffset     int64 `kafka:"min=v5,max=v11"`
	PartitionMaxBytes  int32 `kafka:"min=v0,max=v11"`
}

type RequestTopic

type RequestTopic struct {
	Topic      string             `kafka:"min=v0,max=v11"`
	Partitions []RequestPartition `kafka:"min=v0,max=v11"`
}

type Response

type Response struct {
	ThrottleTimeMs int32           `kafka:"min=v1,max=v11"`
	ErrorCode      int16           `kafka:"min=v7,max=v11"`
	SessionID      int32           `kafka:"min=v7,max=v11"`
	Topics         []ResponseTopic `kafka:"min=v0,max=v11"`
}

func (*Response) ApiKey

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

type ResponsePartition

type ResponsePartition struct {
	Partition            int32                 `kafka:"min=v0,max=v11"`
	ErrorCode            int16                 `kafka:"min=v0,max=v11"`
	HighWatermark        int64                 `kafka:"min=v0,max=v11"`
	LastStableOffset     int64                 `kafka:"min=v4,max=v11"`
	LogStartOffset       int64                 `kafka:"min=v5,max=v11"`
	AbortedTransactions  []ResponseTransaction `kafka:"min=v4,max=v11"`
	PreferredReadReplica int32                 `kafka:"min=v11,max=v11"`
	RecordSet            protocol.RecordSet    `kafka:"min=v0,max=v11"`
}

type ResponseTopic

type ResponseTopic struct {
	Topic      string              `kafka:"min=v0,max=v11"`
	Partitions []ResponsePartition `kafka:"min=v0,max=v11"`
}

type ResponseTransaction

type ResponseTransaction struct {
	ProducerID  int64 `kafka:"min=v4,max=v11"`
	FirstOffset int64 `kafka:"min=v4,max=v11"`
}

Jump to

Keyboard shortcuts

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