alterconfigs

package
v0.4.36 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 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 Request

type Request struct {
	Resources    []RequestResources `kafka:"min=v0,max=v1"`
	ValidateOnly bool               `kafka:"min=v0,max=v1"`
}

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

func (*Request) ApiKey

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

func (*Request) Broker

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

type RequestConfig

type RequestConfig struct {
	Name  string `kafka:"min=v0,max=v1"`
	Value string `kafka:"min=v0,max=v1,nullable"`
}

type RequestResources

type RequestResources struct {
	ResourceType int8            `kafka:"min=v0,max=v1"`
	ResourceName string          `kafka:"min=v0,max=v1"`
	Configs      []RequestConfig `kafka:"min=v0,max=v1"`
}

type Response

type Response struct {
	ThrottleTimeMs int32               `kafka:"min=v0,max=v1"`
	Responses      []ResponseResponses `kafka:"min=v0,max=v1"`
}

func (*Response) ApiKey

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

type ResponseResponses

type ResponseResponses struct {
	ErrorCode    int16  `kafka:"min=v0,max=v1"`
	ErrorMessage string `kafka:"min=v0,max=v1,nullable"`
	ResourceType int8   `kafka:"min=v0,max=v1"`
	ResourceName string `kafka:"min=v0,max=v1"`
}

Jump to

Keyboard shortcuts

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