event_bus

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBusListener

type EventBusListener struct {
	ResponseChan chan string
	UserID       string
}

type EventBusMessage

type EventBusMessage struct {
	UserID  string
	Message string
}

type Interface

type Interface interface {
	PublishMessage(eventMsg models.EventInterface) error
	AddListener(listener *EventBusListener)
	RemoveListener(listener *EventBusListener)
	TotalRooms() int
	TotalListenersByRoom(room string) int
}

func NewEventBusServer

func NewEventBusServer(logger logrus.FieldLogger) Interface

func NewNoopEventBusServer

func NewNoopEventBusServer() Interface

Directories

Path Synopsis
Package mock_event_bus is a generated GoMock package.
Package mock_event_bus is a generated GoMock package.

Jump to

Keyboard shortcuts

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