topic

package
v0.6.18 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: BSD-2-Clause Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddSuffix

func AddSuffix(topic libkafka.Topic, suffixes ...string) libkafka.Topic

Types

type CleanupPolicies

type CleanupPolicies []CleanupPolicy

func (CleanupPolicies) String

func (c CleanupPolicies) String() string

type CleanupPolicy

type CleanupPolicy string
const CleanupPolicyCompact CleanupPolicy = "compact"
const CleanupPolicyDelete CleanupPolicy = "delete"

func (CleanupPolicy) String

func (f CleanupPolicy) String() string

type RetentionBytes

type RetentionBytes int64

func (RetentionBytes) Int64

func (b RetentionBytes) Int64() int64

func (RetentionBytes) String

func (b RetentionBytes) String() string

type RetentionMs

type RetentionMs int64

func (RetentionMs) Int64

func (b RetentionMs) Int64() int64

func (RetentionMs) String

func (b RetentionMs) String() string

type TopicBuilder

type TopicBuilder interface {
	Build(
		name libkafka.Topic,
		cleanupPolicies CleanupPolicies,
		retentionMs RetentionMs,
		retentionBytes RetentionBytes,
	) v1beta2.KafkaTopic
}

func NewTopicBuilder

func NewTopicBuilder() TopicBuilder

type TopicCreator

type TopicCreator interface {
	CreateTopic(
		topic kafka.Topic,
		cleanupPolicies CleanupPolicies,
		retentionMs RetentionMs,
		retentionBytes RetentionBytes,
	) v1beta2.KafkaTopic
}

func NewTopicCreator

func NewTopicCreator(
	topicBuilder TopicBuilder,
) TopicCreator

type TopicsProvider

type TopicsProvider interface {
	Get(ctx context.Context) (v1beta2.KafkaTopics, error)
}

type TopicsProviderFunc

type TopicsProviderFunc func(ctx context.Context) (v1beta2.KafkaTopics, error)

func (TopicsProviderFunc) Get

type TopicsProviderList

type TopicsProviderList []TopicsProvider

func (TopicsProviderList) Get

Jump to

Keyboard shortcuts

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