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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	mock.Mock
}

Protocol is an autogenerated mock type for the Protocol type

func (*Protocol) CloseAllSubscriptions

func (_m *Protocol) CloseAllSubscriptions() error

CloseAllSubscriptions provides a mock function with given fields:

func (*Protocol) Discover

func (_m *Protocol) Discover() error

Discover provides a mock function with given fields:

func (*Protocol) HasSubscribers

func (_m *Protocol) HasSubscribers() bool

HasSubscribers provides a mock function with given fields:

func (*Protocol) NewSubscription

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

NewSubscription provides a mock function with given fields:

func (*Protocol) Publish

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

Publish provides a mock function with given fields: event

func (*Protocol) RemoveSubscription

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

RemoveSubscription provides a mock function with given fields: s

func (*Protocol) SetExpiryTime

func (_m *Protocol) SetExpiryTime(duration time.Duration)

SetExpiryTime provides a mock function with given fields: duration

Jump to

Keyboard shortcuts

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