mocks

package
v0.0.0-...-379bc4c Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func (*Subscription) Close

func (_m *Subscription) Close() error

Close provides a mock function with given fields:

func (*Subscription) Events

func (_m *Subscription) Events() <-chan interface{}

Events provides a mock function with given fields:

func (*Subscription) ID

func (_m *Subscription) ID() string

ID provides a mock function with given fields:

func (*Subscription) Write

func (_m *Subscription) Write(event interface{}) error

Write provides a mock function with given fields: event

type SubscriptionTarget

type SubscriptionTarget struct {
	mock.Mock
}

SubscriptionTarget is an autogenerated mock type for the SubscriptionTarget type

func (*SubscriptionTarget) CloseAllSubscriptions

func (_m *SubscriptionTarget) CloseAllSubscriptions() error

CloseAllSubscriptions provides a mock function with given fields:

func (*SubscriptionTarget) HasSubscribers

func (_m *SubscriptionTarget) HasSubscribers() bool

HasSubscribers provides a mock function with given fields:

func (*SubscriptionTarget) NewSubscription

func (_m *SubscriptionTarget) NewSubscription() (common.Subscription, error)

NewSubscription provides a mock function with given fields:

func (*SubscriptionTarget) Publish

func (_m *SubscriptionTarget) Publish(event interface{}) error

Publish provides a mock function with given fields: event

func (*SubscriptionTarget) RemoveSubscription

func (_m *SubscriptionTarget) RemoveSubscription(s common.Subscription) error

RemoveSubscription provides a mock function with given fields: s

Jump to

Keyboard shortcuts

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