events

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 5 Imported by: 0

README

📜 Caesar Events

This repository contains the documentation for the Caesar Events module.

It consists in a very thing layer on top of the Watermill's library, which is a Go library for working efficiently with message queues.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenForEvents

func ListenForEvents(emitter *EventsEmitter)

Types

type EventsEmitter

type EventsEmitter struct {
	*message.Router
	// contains filtered or unexported fields
}

func NewEventsEmitter

func NewEventsEmitter() *EventsEmitter

func (*EventsEmitter) Emit

func (emitter *EventsEmitter) Emit(topic string, payload []byte)

func (*EventsEmitter) On

func (emitter *EventsEmitter) On(topic string, handler message.HandlerFunc)

func (*EventsEmitter) Run

func (emitter *EventsEmitter) Run()

Jump to

Keyboard shortcuts

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