api

package
v0.0.0-...-1a624b7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAPI

func StartAPI(collection *mongo.Collection, eventBus *EventBus)

Types

type EventBus

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

func NewEventBus

func NewEventBus() *EventBus

Create event bus

func (*EventBus) Close

func (eb *EventBus) Close()

Close connection

func (*EventBus) Publish

func (eb *EventBus) Publish(event string)

Publish message to event bus

func (*EventBus) Subscribe

func (eb *EventBus) Subscribe() <-chan string

Subscribe to event bus

Jump to

Keyboard shortcuts

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