response

package
v0.0.0-...-15099dc Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(msg []byte, requestApiKey, requestApiVersion int16, requestCorrelationId int32) (Response, error)

Parse deserializes this Kafka response

func (*Response) Data

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

func (*Response) HeaderData

func (r *Response) HeaderData() *response.Header

func (*Response) Release

func (r *Response) Release()

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

func (*Response) Serialize

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

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

func (*Response) SizeInBytes

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

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

func (*Response) String

func (r *Response) String() string

Jump to

Keyboard shortcuts

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