util

package
v0.27.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GroupIdPrefix = "kafka"

Variables

This section is empty.

Functions

func AppendKafkaChannelServiceNameSuffix

func AppendKafkaChannelServiceNameSuffix(channelName string) string

AppendKafkaChannelServiceNameSuffix appends the KafkaChannel Service name suffix to the specified string.

func GroupId added in v0.24.0

func GroupId(uid string) string

GroupId returns a formatted string representing the Kafka ConsumerGroup ID.

func TopicName

func TopicName(namespace string, name string) string

TopicName returns a formatted string representing the Kafka Topic name.

func TrimKafkaChannelServiceNameSuffix

func TrimKafkaChannelServiceNameSuffix(serviceName string) string

TrimKafkaChannelServiceNameSuffix removes the KafkaChannel Service name suffix from the specified string.

func Uid added in v0.25.0

func Uid(groupId string) types.UID

Uid returns a UID from the specified GroupId, which is the inverse of GroupId().

Types

This section is empty.

Jump to

Keyboard shortcuts

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