eventbus

package
v0.0.0-...-3b0633c Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBus

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

func NewEventBus

func NewEventBus(hosts string, options Options) *EventBus

func (*EventBus) Close

func (eb *EventBus) Close()

func (*EventBus) GetConnection

func (eb *EventBus) GetConnection() *kafka.Consumer

func (*EventBus) NewConsumer

func (eb *EventBus) NewConsumer() error

type EventBusHandler

type EventBusHandler struct {
	Reconnect  func()
	Disconnect func()
}

type Options

type Options struct {
	ClientName string
	GroupId    string
}

Jump to

Keyboard shortcuts

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