alterclientquotas

package
v0.4.50 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	EntityType string `kafka:"min=v0,max=v0|min=v1,max=v1,compact"`
	EntityName string `kafka:"min=v0,max=v0,nullable|min=v1,max=v1,nullable,compact"`
	// contains filtered or unexported fields
}

type Entry

type Entry struct {
	Entities []Entity `kafka:"min=v0,max=v1"`
	Ops      []Ops    `kafka:"min=v0,max=v1"`
	// contains filtered or unexported fields
}

type Ops

type Ops struct {
	Key    string  `kafka:"min=v0,max=v0|min=v1,max=v1,compact"`
	Value  float64 `kafka:"min=v0,max=v1"`
	Remove bool    `kafka:"min=v0,max=v1"`
	// contains filtered or unexported fields
}

type Request

type Request struct {
	Entries      []Entry `kafka:"min=v0,max=v1"`
	ValidateOnly bool    `kafka:"min=v0,max=v1"`
	// contains filtered or unexported fields
}

Detailed API definition: https://kafka.apache.org/protocol#The_Messages_AlterClientQuotas

func (*Request) ApiKey

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

func (*Request) Broker

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

type Response

type Response struct {
	ThrottleTimeMs int32            `kafka:"min=v0,max=v1"`
	Results        []ResponseQuotas `kafka:"min=v0,max=v1"`
	// contains filtered or unexported fields
}

func (*Response) ApiKey

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

type ResponseQuotas

type ResponseQuotas struct {
	ErrorCode    int16    `kafka:"min=v0,max=v1"`
	ErrorMessage string   `kafka:"min=v0,max=v1,nullable"`
	Entities     []Entity `kafka:"min=v0,max=v1"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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