message

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 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 Message

type Message interface {
	MessageType() Type
}

Message is a generic message that can be routed to an event or command handler

type Type

type Type string

Type is a specific type of message, that allows the bus to discriminated with type a Message interface is

var (
	// Command is a single request for the application to do something.
	// Commands may be used sync or async
	Command Type = "command"
	// Query is a question asked to the application, should never mutate state
	Query Type = "query"
	// Event is a record of something that has happened
	Event Type = "event"
	// QueuedEvent is an event that has been fanned out to a handler and has been
	// or is ready to be queued
	QueuedEvent Type = "queuedEvent"
)

Jump to

Keyboard shortcuts

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