Fetch

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(args *Args) *api.Request

Types

type AbortedTransaction

type AbortedTransaction struct {
	ProducerId  int64
	FirstOffset int64
}

type Args added in v0.0.5

type Args struct {
	ClientId      string
	Topic         string
	Partition     int32
	Offset        int64
	MinBytes      int32
	MaxBytes      int32
	MaxWaitTimeMs int32
}

type Partition

type Partition struct {
	Partition         int32
	FetchOffset       int64
	LogStartOffset    int64 // not used
	PartitionMaxBytes int32
}

type PartitionResponse

type PartitionResponse struct {
	Partition           int32
	ErrorCode           int16
	HighWatermark       int64
	LastStableOffset    int64
	LogStartOffset      int64
	AbortedTransactions []AbortedTransaction
	//
	RecordSet []byte // NULLABLE_BYTES
}

type Request

type Request struct {
	ReplicaId      int32
	MaxWaitTimeMs  int32
	MinBytes       int32
	MaxBytes       int32
	IsolationLevel int8 // not used
	Topics         []Topic
}

type Response

type Response struct {
	ThrottleTimeMs int32
	TopicResponses []TopicResponse
}

func (*Response) PartitionResponse

func (r *Response) PartitionResponse() *PartitionResponse

type Topic

type Topic struct {
	Topic      string
	Partitions []Partition
}

type TopicResponse

type TopicResponse struct {
	Topic              string
	PartitionResponses []PartitionResponse
}

Jump to

Keyboard shortcuts

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