createtopics

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 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"`
}

func (*Request) ApiKey

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

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=v4|min=v5,max=v5,compact"`
	Value string `kafka:"min=v0,max=v4,nullable|min=v5,max=v5,compact,nullable"`
}

type RequestTopic

type RequestTopic struct {
	Name              string              `kafka:"min=v0,max=v4|min=v5,max=v5,compact"`
	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"`
}

func (*Response) ApiKey

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

type ResponseConfig

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

type ResponseTopic

type ResponseTopic struct {
	Name              string           `kafka:"min=v0,max=v4|min=v5,max=v5,compact"`
	ErrorCode         int16            `kafka:"min=v0,max=v5"`
	ErrorMessage      string           `kafka:"min=v1,max=v4,nullable|min=v5,max=v5,compact,nullable"`
	NumPartitions     int32            `kafka:"min=v5,max=v5"`
	ReplicationFactor int16            `kafka:"min=v5,max=v5"`
	Configs           []ResponseConfig `kafka:"min=v5,max=v5"`
}

Jump to

Keyboard shortcuts

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