mediator

package
v0.0.0-...-42841ab Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBroadcaster

type IBroadcaster interface {
	broadcast.Broadcaster
}

type IMediator

type IMediator interface {
	Register(topic string, fn interface{}) error
	RegisterOnce(topic string, fn interface{}) error
	HasCallback(topic string) bool
	Unregister(topic string, fn interface{}) error
	Broadcast(topic string, msg ...interface{})
	RegisterAsync(topic string, fn interface{}, transactional bool) error
	RegisterOnceAsync(topic string, fn interface{}) error
	WaitAsync()
	KnownTopics() map[string]interface{}
	RegisterTopic(topic string)
	UnregisterTopic(topic string)
}

func SingletonMediator

func SingletonMediator() IMediator

func TransientDECBus

func TransientDECBus() IMediator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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