event_publisher

package
v0.0.0-...-dae10ae Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventPublisher

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

func New

func New() *EventPublisher

func StartUp

func StartUp() (*EventPublisher, error)

func (*EventPublisher) Publish

func (ep *EventPublisher) Publish(event string, payload []byte)

func (*EventPublisher) Subscribe

func (ep *EventPublisher) Subscribe(event string, cb func([]byte)) func()

Jump to

Keyboard shortcuts

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