mediator

package
v0.0.0-...-880306c Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImplementsIDECBus

func ImplementsIDECBus(bus IDECBus) bool

Types

type DECBus

type DECBus struct {
	// contains filtered or unexported fields
}

func (*DECBus) HasCallback

func (b *DECBus) HasCallback(topic string) bool

func (*DECBus) Publish

func (b *DECBus) Publish(topic string, msg ...interface{})

func (*DECBus) Subscribe

func (b *DECBus) Subscribe(topic string, fn interface{}) error

func (*DECBus) SubscribeAsync

func (b *DECBus) SubscribeAsync(topic string, fn interface{}, transactional bool) interface{}

func (*DECBus) SubscribeOnce

func (b *DECBus) SubscribeOnce(topic string, fn interface{}) error

func (*DECBus) SubscribeOnceAsync

func (b *DECBus) SubscribeOnceAsync(topic string, fn interface{}) error

func (*DECBus) Unsubscribe

func (b *DECBus) Unsubscribe(topic string, fn interface{}) error

func (*DECBus) WaitAsync

func (b *DECBus) WaitAsync()

type IDECBus

type IDECBus interface {
	Subscribe(topic string, fn interface{}) error
	SubscribeOnce(topic string, fn interface{}) error
	HasCallback(topic string) bool
	Unsubscribe(topic string, fn interface{}) error
	Publish(topic string, msg ...interface{})
	SubscribeAsync(topic string, fn interface{}, transactional bool) interface{}
	SubscribeOnceAsync(topic string, fn interface{}) error
	WaitAsync()
}

func SingletonDECBus

func SingletonDECBus() IDECBus

func TransientDECBus

func TransientDECBus() IDECBus

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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