produce

package
v0.4.28 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 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 {
	TransactionalID string         `kafka:"min=v3,max=v8,nullable"`
	Acks            int16          `kafka:"min=v0,max=v8"`
	Timeout         int32          `kafka:"min=v0,max=v8"`
	Topics          []RequestTopic `kafka:"min=v0,max=v8"`
}

func (*Request) ApiKey

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

func (*Request) Broker

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

func (*Request) HasResponse

func (r *Request) HasResponse() bool

func (*Request) Prepare

func (r *Request) Prepare(apiVersion int16)

type RequestPartition

type RequestPartition struct {
	Partition int32              `kafka:"min=v0,max=v8"`
	RecordSet protocol.RecordSet `kafka:"min=v0,max=v8"`
}

type RequestTopic

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

type Response

type Response struct {
	Topics         []ResponseTopic `kafka:"min=v0,max=v8"`
	ThrottleTimeMs int32           `kafka:"min=v1,max=v8"`
}

func (*Response) ApiKey

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

type ResponseError

type ResponseError struct {
	BatchIndex             int32  `kafka:"min=v8,max=v8"`
	BatchIndexErrorMessage string `kafka:"min=v8,max=v8,nullable"`
}

type ResponsePartition

type ResponsePartition struct {
	Partition      int32           `kafka:"min=v0,max=v8"`
	ErrorCode      int16           `kafka:"min=v0,max=v8"`
	BaseOffset     int64           `kafka:"min=v0,max=v8"`
	LogAppendTime  int64           `kafka:"min=v2,max=v8"`
	LogStartOffset int64           `kafka:"min=v5,max=v8"`
	RecordErrors   []ResponseError `kafka:"min=v8,max=v8"`
	ErrorMessage   string          `kafka:"min=v8,max=v8,nullable"`
}

type ResponseTopic

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

Jump to

Keyboard shortcuts

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