Documentation ¶
Index ¶
- func ImplementsIDECBus(bus IDECBus) bool
- type DECBus
- func (b *DECBus) HasCallback(topic string) bool
- func (b *DECBus) Publish(topic string, msg ...interface{})
- func (b *DECBus) Subscribe(topic string, fn interface{}) error
- func (b *DECBus) SubscribeAsync(topic string, fn interface{}, transactional bool) interface{}
- func (b *DECBus) SubscribeOnce(topic string, fn interface{}) error
- func (b *DECBus) SubscribeOnceAsync(topic string, fn interface{}) error
- func (b *DECBus) Unsubscribe(topic string, fn interface{}) error
- func (b *DECBus) WaitAsync()
- type IDECBus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImplementsIDECBus ¶
Types ¶
type DECBus ¶
type DECBus struct {
// contains filtered or unexported fields
}
func (*DECBus) HasCallback ¶
func (*DECBus) SubscribeAsync ¶
func (*DECBus) SubscribeOnce ¶
func (*DECBus) SubscribeOnceAsync ¶
func (*DECBus) Unsubscribe ¶
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
Click to show internal directories.
Click to hide internal directories.