createtopics

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 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 Request

type Request struct {
	Topics       []RequestTopic `kafka:"min=v0,max=v5"`
	TimeoutMs    int32          `kafka:"min=v0,max=v5"`
	ValidateOnly bool           `kafka:"min=v1,max=v5"`
	// contains filtered or unexported fields
}

func (*Request) ApiKey

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

func (*Request) Broker

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

type RequestAssignment

type RequestAssignment struct {
	PartitionIndex int32   `kafka:"min=v0,max=v5"`
	BrokerIDs      []int32 `kafka:"min=v0,max=v5"`
}

type RequestConfig

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

type RequestTopic

type RequestTopic struct {
	Name              string              `kafka:"min=v0,max=v5"`
	NumPartitions     int32               `kafka:"min=v0,max=v5"`
	ReplicationFactor int16               `kafka:"min=v0,max=v5"`
	Assignments       []RequestAssignment `kafka:"min=v0,max=v5"`
	Configs           []RequestConfig     `kafka:"min=v0,max=v5"`
}

type Response

type Response struct {
	ThrottleTimeMs int32           `kafka:"min=v2,max=v5"`
	Topics         []ResponseTopic `kafka:"min=v0,max=v5"`
	// contains filtered or unexported fields
}

func (*Response) ApiKey

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

type ResponseTopic

type ResponseTopic struct {
	Name              string `kafka:"min=v0,max=v5"`
	ErrorCode         int16  `kafka:"min=v0,max=v5"`
	ErrorMessage      string `kafka:"min=v1,max=v5,nullable"`
	NumPartitions     int32  `kafka:"min=v5,max=v5"`
	ReplicationFactor int16  `kafka:"min=v5,max=v5"`

	Configs []ResponseTopicConfig `kafka:"min=v5,max=v5"`
}

type ResponseTopicConfig

type ResponseTopicConfig struct {
	Name         string `kafka:"min=v5,max=v5"`
	Value        string `kafka:"min=v5,max=v5,nullable"`
	ReadOnly     bool   `kafka:"min=v5,max=v5"`
	ConfigSource int8   `kafka:"min=v5,max=v5"`
	IsSensitive  bool   `kafka:"min=v5,max=v5"`
}

Jump to

Keyboard shortcuts

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