utils

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrokerConfigMapKey                 = "bootstrapServers"
	ConsumerModeConfigMapKey           = "consumerMode"
	ConsumerModePartitionConsumerValue = "partitions"
	ConsumerModeMultiplexConsumerValue = "multiplex"
	KafkaChannelSeparator              = "."

	// DefaultNumPartitions defines the default number of partitions
	DefaultNumPartitions = 1

	// DefaultReplicationFactor defines the default number of replications
	DefaultReplicationFactor = 1
)

Variables

This section is empty.

Functions

func TopicName

func TopicName(separator, namespace, name string) string

Types

type KafkaConfig

type KafkaConfig struct {
	Brokers      []string
	ConsumerMode cluster.ConsumerMode
}

func GetKafkaConfig

func GetKafkaConfig(path string) (*KafkaConfig, error)

GetKafkaConfig returns the details of the Kafka cluster.

Jump to

Keyboard shortcuts

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