kafkacp

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaBrokers

type KafkaBrokers []TCPAddr

KafkaBrokers represents list of kafka broker tcp addresses.

func (*KafkaBrokers) AddFromString

func (k *KafkaBrokers) AddFromString(brokers string)

AddFromString populates KafkaBrokers from comma-separated string.

func (KafkaBrokers) String

func (k KafkaBrokers) String() string

func (KafkaBrokers) ToStringSlice

func (k KafkaBrokers) ToStringSlice() []string

ToStringSlice converts KafkaBrokers to a slice of strings.

func (KafkaBrokers) Valid

func (k KafkaBrokers) Valid() bool

Valid checks if all TCPAddr elements in KafkaBrokers are valid.

type KafkaTopicIdentifier

type KafkaTopicIdentifier string

KafkaTopicIdentifier represents custom type for kafka topic names.

const (
	DefaultKafkaBrokers = "127.0.0.1:9094"

	KafkaTopicIdentifierGitHub    KafkaTopicIdentifier = "github"
	KafkaTopicIdentifierGitLab    KafkaTopicIdentifier = "gitlab"
	KafkaTopicIdentifierBitBucket KafkaTopicIdentifier = "bitbucket"
)

defaults.

func (KafkaTopicIdentifier) String

func (s KafkaTopicIdentifier) String() string

func (KafkaTopicIdentifier) Valid

func (s KafkaTopicIdentifier) Valid() bool

Valid checks and validates kafka topic name.

type TCPAddr

type TCPAddr string

TCPAddr represents tcp address as string.

func (TCPAddr) String

func (s TCPAddr) String() string

func (TCPAddr) Valid

func (s TCPAddr) Valid() bool

Valid checks and validates kafka topic name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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