gen

package
v0.0.0-...-e5b194c Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReassignPartitionsToJson

func ReassignPartitionsToJson(network, address string, req Req) (string, error)

Types

type Body

type Body struct {
	Version    int             `json:"version"`
	Partitions []BodyPartition `json:"partitions"`
}

type BodyPartition

type BodyPartition struct {
	Topic     string `json:"topic"`
	Partition int    `json:"partition"`
	Replicas  []int  `json:"replicas"`
}

type Gen

type Gen struct{}

func (*Gen) Reassign

func (g *Gen) Reassign(network, address string, req Req) (Body, error)

func (*Gen) ReassignToJson

func (g *Gen) ReassignToJson(network, address string, req Req) (string, error)

type Req

type Req struct {
	Version   int    `json:"version"`
	Topic     string `json:"topic"`
	Partition int    `json:"partition"`
	Replica   int    `json:"replica"`
}

Jump to

Keyboard shortcuts

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