listener

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

func New

func New(c context.Context, cfg config.KafkaConfig, di *dipkg.DI) *Listener

func (*Listener) Close

func (listener *Listener) Close() error

func (*Listener) Listen

func (listener *Listener) Listen() error

func (*Listener) RegisterHandler

func (listener *Listener) RegisterHandler(name string, handler events.Handler)

RegisterHandler adds a handler to a topic/event name

Jump to

Keyboard shortcuts

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