kafka

package
v2.0.0-...-acbaf60 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config *sarama.Config
}

func NewConfig

func NewConfig(rootCaFile string) (*Config, error)

type Message

type Message struct {
	Key       []byte
	Value     []byte
	Offset    int64
	TimeStamp time.Time
}

type Reader

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

func NewReader

func NewReader(address string) (*Reader, error)

func (*Reader) Read

func (r *Reader) Read() chan *Message

type SyncWriter

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

func NewSyncWriter

func NewSyncWriter(rootCaFile, address string, partitionId int) (*SyncWriter, error)

func (*SyncWriter) Close

func (s *SyncWriter) Close() error

func (*SyncWriter) SimpleWrite

func (s *SyncWriter) SimpleWrite(input []byte) error

func (*SyncWriter) Start

func (s *SyncWriter) Start() error

Jump to

Keyboard shortcuts

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