request

package
v0.0.0-...-d5e11c2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 9 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 {
	// contains filtered or unexported fields
}

func Parse

func Parse(msg []byte) (Request, error)

Parse deserializes this Kafka request

func (*Request) Data

func (r *Request) Data() protocol.MessageData

func (*Request) HeaderData

func (r *Request) HeaderData() *request.Header

func (*Request) Release

func (r *Request) Release()

Release releases the dynamically allocated fields of this object by returning then to object pools

func (*Request) Serialize

func (r *Request) Serialize(apiVersion int16) ([]byte, error)

Serialize serializes this Kafka request according to the given Kafka protocol version

func (*Request) SizeInBytes

func (r *Request) SizeInBytes(apiVersion int16) (int, error)

SizeInBytes returns the max size of this Kafka request in bytes when it's serialized

func (*Request) String

func (r *Request) String() string

Jump to

Keyboard shortcuts

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