message

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 1 Imported by: 1

README

Go Reference

Do not use this in production, this is just an experiment!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	ContextName() string
	MessageName() string
	Handle(msg Message) error
}

type Message

type Message interface {
	Name() string
	Context() string
}

type MessageBus

type MessageBus interface {
	Dispatch(msg Message) error
}

func NewSimpleMessageBus

func NewSimpleMessageBus(handlers []Handler) MessageBus

Jump to

Keyboard shortcuts

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