kafka

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig added in v2.0.34

func DefaultConfig(clientId string) *sarama.Config

func EnsureTopics

func EnsureTopics(client sarama.Client, topics Topics) error

func NewSchemaRegistry

func NewSchemaRegistry(kafkaClient sarama.Client, topic string, replicationFactor int16) (schema.Registry, error)

Types

type Topic

type Topic struct {
	Name              string
	NumPartitions     int32
	ReplicationFactor int16
	Config            map[string]*string
}

type Topics

type Topics []Topic

type TopicsFunc

type TopicsFunc func(replicationFactor int16) Topics

Jump to

Keyboard shortcuts

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