kafkaconfigurator

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "kafkaconfigurator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerHandler

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

func NewBrokerHandler

func NewBrokerHandler(l *logrus.Entry, brokers string) *BrokerHandler

func (*BrokerHandler) Close

func (bh *BrokerHandler) Close() error

func (*BrokerHandler) ReadFromTopicWithContext

func (bh *BrokerHandler) ReadFromTopicWithContext(ctx context.Context, topic string, consumerGroupID string, messageC chan kafka.Message) error

type Plugin

type Plugin struct {
	Logger *log.Entry
	// contains filtered or unexported fields
}

func New

func New() *Plugin

func (*Plugin) Boot

func (p *Plugin) Boot(conf interface{}, dependencies ...interface{}) plugins.Plugin

func (*Plugin) Close

func (p *Plugin) Close() error

func (*Plugin) IsEnabled

func (p *Plugin) IsEnabled() bool

func (*Plugin) LoadConfig

func (p *Plugin) LoadConfig(brokers string, topic string, updateFn func(conf string) error) error

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) Start

func (p *Plugin) Start() error

Jump to

Keyboard shortcuts

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