mock

package
v0.0.0-...-21d4feb Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBus

type EventBus struct {
	mock.Mock
}

func (*EventBus) HasCallback

func (_m *EventBus) HasCallback(topic string) bool

func (*EventBus) Publish

func (_m *EventBus) Publish(topic string, args ...interface{})

func (*EventBus) Subscribe

func (_m *EventBus) Subscribe(topic string, fn interface{}) error

func (*EventBus) SubscribeAsync

func (_m *EventBus) SubscribeAsync(topic string, fn interface{}, transactional bool) error

func (*EventBus) SubscribeOnce

func (_m *EventBus) SubscribeOnce(topic string, fn interface{}) error

func (*EventBus) SubscribeOnceAsync

func (_m *EventBus) SubscribeOnceAsync(topic string, fn interface{}) error

func (*EventBus) Unsubscribe

func (_m *EventBus) Unsubscribe(topic string, handler interface{}) error

func (*EventBus) WaitAsync

func (_m *EventBus) WaitAsync()

Jump to

Keyboard shortcuts

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