createtopics

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 1 Imported by: 12

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=v4"`
	TimeoutMs    int32          `kafka:"min=v0,max=v4"`
	ValidateOnly bool           `kafka:"min=v1,max=v4"`
}

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=v4"`
	BrokerIDs      []int32 `kafka:"min=v0,max=v4"`
}

type RequestConfig

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

type RequestTopic

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

type Response

type Response struct {
	ThrottleTimeMs int32           `kafka:"min=v2,max=v4"`
	Topics         []ResponseTopic `kafka:"min=v0,max=v4"`
}

func (*Response) ApiKey

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

type ResponseTopic

type ResponseTopic struct {
	Name         string `kafka:"min=v0,max=v4"`
	ErrorCode    int16  `kafka:"min=v0,max=v4"`
	ErrorMessage string `kafka:"min=v1,max=v4,nullable"`
}

Jump to

Keyboard shortcuts

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