events

package
v0.0.0-...-b7c645d Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Message
	Topic() string
}

type Events

type Events interface {
	RegisterHandler(Factory, Handle)
	Broadcast(context.Context, Event) error
}

func NewEventsSvc

func NewEventsSvc(ps *pubsub.PubSub, tm *taskmanager.TaskManager) (Events, error)

type Factory

type Factory func() Event

type Handle

type Handle func(Event)

type Message

type Message interface {
	Marshal() ([]byte, error)
	Unmarshal([]byte) error
}

Jump to

Keyboard shortcuts

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