oplog

package
v0.0.0-...-89d387e Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKafkaAccessEnv

func GetKafkaAccessEnv(cfg *sarama.Config)

Types

type ConsumerImpl

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

func (*ConsumerImpl) Cleanup

func (consumer *ConsumerImpl) Cleanup(session sarama.ConsumerGroupSession) error

Cleanup runs at the end of a session, once all ConsumeClaim goroutines have exited.

func (*ConsumerImpl) ConsumeClaim

func (consumer *ConsumerImpl) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error

func (*ConsumerImpl) Setup

func (consumer *ConsumerImpl) Setup(session sarama.ConsumerGroupSession) error

Setup runs at the beginning of a session before ConsumeClaim.

type OpLogger

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

func NewOpLogger

func NewOpLogger(ctx context.Context, topic string, executor *consistenthashing.Executor) *OpLogger

func (*OpLogger) Close

func (olr *OpLogger) Close()

func (*OpLogger) SetUpConsumer

func (olr *OpLogger) SetUpConsumer(endpoints []string, groupID string)

func (*OpLogger) SetUpProducer

func (olr *OpLogger) SetUpProducer(endpoints []string)

func (*OpLogger) SyncAddOpLog

func (olr *OpLogger) SyncAddOpLog(oplog *pb_api.OpLogEntry)

Jump to

Keyboard shortcuts

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