kafka

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BootstrapServers = "my-cluster-kafka-bootstrap.kafka:9092"
)

Variables

View Source
var (
	BootstrapServersArr = []string{"my-cluster-kafka-bootstrap.kafka:9092"}
)

Functions

func VerifyMessagesInTopic added in v0.18.0

func VerifyMessagesInTopic(
	client *kubernetes.Clientset,
	tracker *testlib.Tracker,
	namespacedName types.NamespacedName,
	config *ConsumerConfig) error

func VerifyNumPartitionAndReplicationFactor

func VerifyNumPartitionAndReplicationFactor(
	client *kubernetes.Clientset,
	tracker *testlib.Tracker,
	namespace string,
	name string,
	config *Config) error

Types

type Config

type Config struct {
	BootstrapServers  string `required:"true" split_words:"true"`
	ReplicationFactor int16  `required:"true" split_words:"true"`
	NumPartitions     int32  `required:"true" split_words:"true"`
	Topic             string `required:"true" split_words:"true"`
}

type ConsumerConfig added in v0.18.0

type ConsumerConfig struct {
	BootstrapServers string `json:"bootstrapServers" required:"true" split_words:"true"`
	Topic            string `json:"topic" required:"true" split_words:"true"`
	IDS              string `json:"ids" required:"true" split_words:"true"`
	ContentMode      string `json:"contentMode" required:"true" split_words:"true"`
}

Jump to

Keyboard shortcuts

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