queue

package module
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	EventNameHeader = "x-event-name"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	Name() string
}

type EventEmitter

type EventEmitter interface {
	Emit(Event) error
}

type EventListener

type EventListener interface {
	Listen(...string) (<-chan Event, <-chan error, error)
	EventMapper() EventMapper
}

type EventMapper

type EventMapper interface {
	MapEvent(eventName string, serialized interface{}) (Event, error)
}

func NewEventMapper

func NewEventMapper(mapperType MapperType) (EventMapper, error)

type MapperType

type MapperType int
const (
	StaticMapper MapperType = iota
)

type StaticEventMapper

type StaticEventMapper struct{}

func (*StaticEventMapper) MapEvent

func (m *StaticEventMapper) MapEvent(eventName string, serialized interface{}) (Event, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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