kafka

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() auacornapi.Acorn

Types

type Impl

type Impl struct {
	Configuration       librepo.Configuration
	CustomConfiguration config.CustomConfiguration
	Logging             librepo.Logging
	HostIP              repository.HostIP

	Callback      repository.ReceiverCallback
	KafkaProducer *kgo.Client
	KafkaConsumer *kgo.Client
	KafkaTopic    string
}

func (*Impl) AcornName

func (r *Impl) AcornName() string

func (*Impl) AssembleAcorn

func (r *Impl) AssembleAcorn(registry auacornapi.AcornRegistry) error

func (*Impl) Connect

func (r *Impl) Connect(ctx context.Context) error

func (*Impl) Disconnect

func (r *Impl) Disconnect(ctx context.Context) error

func (*Impl) IsKafka

func (r *Impl) IsKafka() bool

func (*Impl) Level

func (r *Impl) Level() kgo.LogLevel

func (*Impl) Log

func (r *Impl) Log(level kgo.LogLevel, msg string, keyvals ...interface{})

func (*Impl) Send

func (r *Impl) Send(ctx context.Context, event repository.UpdateEvent) error

func (*Impl) SetupAcorn

func (r *Impl) SetupAcorn(registry auacornapi.AcornRegistry) error

func (*Impl) StartReceiveLoop

func (r *Impl) StartReceiveLoop(ctx context.Context) error

func (*Impl) SubscribeIncoming

func (r *Impl) SubscribeIncoming(ctx context.Context, callback repository.ReceiverCallback) error

func (*Impl) TeardownAcorn

func (r *Impl) TeardownAcorn(registry auacornapi.AcornRegistry) error

Jump to

Keyboard shortcuts

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