kafka

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*options)

func WithLogger

func WithLogger(l *zap.Logger) Option

func WithMinInSyncReplicas

func WithMinInSyncReplicas(n string) Option

func WithPartitionNum

func WithPartitionNum(n int32) Option

func WithReplicationFactor

func WithReplicationFactor(f int16) Option

type TopicCreator

type TopicCreator interface {
	CreateTopics(ctx context.Context) error
}

func NewTopicCreator

func NewTopicCreator(client *storagekafka.ClusterAdmin, topicPrefix string, opts ...Option) TopicCreator

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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