kafka_storage

package
v0.0.0-...-ee95d54 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTLSConfig

func GetTLSConfig(trustStorePath string) (*tls.Config, error)

Types

type KafkaAuthCredentials

type KafkaAuthCredentials struct {
	Username string
	Password string
}

type KafkaStorage

type KafkaStorage struct {
	// contains filtered or unexported fields
}

func NewKafkaStorage

func NewKafkaStorage(cfg *config.KafkaStorageConfig) (*KafkaStorage, error)

func (*KafkaStorage) Close

func (ks *KafkaStorage) Close() error

func (*KafkaStorage) GetMessages

func (ks *KafkaStorage) GetMessages(_ uint64) ([]storage.Message, error)

func (*KafkaStorage) IgnoreMessages

func (ks *KafkaStorage) IgnoreMessages(messages []string, useOffset bool) error

func (*KafkaStorage) Send

func (ks *KafkaStorage) Send(messages ...storage.Message) error

func (*KafkaStorage) SetConsumerGroup

func (ks *KafkaStorage) SetConsumerGroup(cg string) error

func (*KafkaStorage) UnignoreMessages

func (ks *KafkaStorage) UnignoreMessages()

Jump to

Keyboard shortcuts

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