eventbus

package
v0.0.0-...-334f10d Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleEventBus

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

func NewSimpleEventBus

func NewSimpleEventBus(bus EventBus.Bus) *SimpleEventBus

func (*SimpleEventBus) Publish

func (e *SimpleEventBus) Publish(eventName string, event interface{})

func (*SimpleEventBus) Subscribe

func (e *SimpleEventBus) Subscribe(eventName string, handler interface{})

type TaniaEventBus

type TaniaEventBus interface {
	Publish(eventName string, event interface{})
	Subscribe(eventName string, handlerFunc interface{})
}

Jump to

Keyboard shortcuts

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