mocks

package
v0.0.0-...-9792e72 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	mock.Mock
}

Device is an autogenerated mock type for the Device type

func (*Device) Close

func (_m *Device) Close() error

Close provides a mock function with given fields:

func (*Device) CloseAllSubscriptions

func (_m *Device) CloseAllSubscriptions() error

CloseAllSubscriptions provides a mock function with given fields:

func (*Device) Discover

func (_m *Device) Discover() error

Discover provides a mock function with given fields:

func (*Device) GetInfo

func (_m *Device) GetInfo() (common.DeviceInfo, error)

GetInfo provides a mock function with given fields:

func (*Device) GetLabel

func (_m *Device) GetLabel() (string, error)

GetLabel provides a mock function with given fields:

func (*Device) GetProduct

func (_m *Device) GetProduct() (product.Product, error)

GetProduct provides a mock function with given fields:

func (*Device) GetToken

func (_m *Device) GetToken() []byte

GetToken provides a mock function with given fields:

func (*Device) Handle

func (_m *Device) Handle(_a0 *packet.Packet) error

Handle provides a mock function with given fields: _a0

func (*Device) HasSubscribers

func (_m *Device) HasSubscribers() bool

HasSubscribers provides a mock function with given fields:

func (*Device) ID

func (_m *Device) ID() uint32

ID provides a mock function with given fields:

func (*Device) NewSubscription

func (_m *Device) NewSubscription() (subscriptioncommon.Subscription, error)

NewSubscription provides a mock function with given fields:

func (*Device) Outbound

func (_m *Device) Outbound() transport.Outbound

Outbound provides a mock function with given fields:

func (*Device) Provisional

func (_m *Device) Provisional() bool

Provisional provides a mock function with given fields:

func (*Device) Publish

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

Publish provides a mock function with given fields: event

func (*Device) RefreshThrottle

func (_m *Device) RefreshThrottle() <-chan struct{}

RefreshThrottle provides a mock function with given fields:

func (*Device) RemoveSubscription

func (_m *Device) RemoveSubscription(s subscriptioncommon.Subscription) error

RemoveSubscription provides a mock function with given fields: s

func (*Device) Seen

func (_m *Device) Seen() time.Time

Seen provides a mock function with given fields:

func (*Device) SetProvisional

func (_m *Device) SetProvisional(_a0 bool)

SetProvisional provides a mock function with given fields: _a0

type RefreshThrottle

type RefreshThrottle struct {
	mock.Mock
}

RefreshThrottle is an autogenerated mock type for the RefreshThrottle type

func (*RefreshThrottle) Chan

func (_m *RefreshThrottle) Chan() <-chan struct{}

Chan provides a mock function with given fields:

func (*RefreshThrottle) Close

func (_m *RefreshThrottle) Close()

Close provides a mock function with given fields:

func (*RefreshThrottle) Start

func (_m *RefreshThrottle) Start()

Start provides a mock function with given fields:

func (*RefreshThrottle) Stop

func (_m *RefreshThrottle) Stop()

Stop provides a mock function with given fields:

Jump to

Keyboard shortcuts

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