mocks

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2015 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 Client

type Client struct {
	mock.Mock
}

func (*Client) GetRetryInterval

func (_m *Client) GetRetryInterval() *time.Duration

func (*Client) GetTimeout

func (_m *Client) GetTimeout() *time.Duration

type Device

type Device struct {
	SubscriptionTarget
	mock.Mock
}

func (*Device) CachedPower added in v0.3.0

func (_m *Device) CachedPower() bool

func (*Device) GetLabel

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

func (*Device) GetPower

func (_m *Device) GetPower() (bool, error)

func (*Device) ID

func (_m *Device) ID() uint64

func (*Device) SetLabel

func (_m *Device) SetLabel(label string) error

func (*Device) SetPower

func (_m *Device) SetPower(state bool) error

type Group added in v0.2.0

type Group struct {
	SubscriptionTarget
	mock.Mock
}

func (*Group) Devices added in v0.2.0

func (_m *Group) Devices() []common.Device

func (*Group) GetColor added in v0.2.0

func (_m *Group) GetColor() (common.Color, error)

func (*Group) GetLabel added in v0.2.0

func (_m *Group) GetLabel() string

func (*Group) GetPower added in v0.2.0

func (_m *Group) GetPower() (bool, error)

func (*Group) ID added in v0.2.0

func (_m *Group) ID() string

func (*Group) Lights added in v0.2.0

func (_m *Group) Lights() []common.Light

func (*Group) SetColor added in v0.2.0

func (_m *Group) SetColor(color common.Color, duration time.Duration) error

func (*Group) SetPower added in v0.2.0

func (_m *Group) SetPower(state bool) error

func (*Group) SetPowerDuration added in v0.2.0

func (_m *Group) SetPowerDuration(state bool, duration time.Duration) error

type Light

type Light struct {
	Device
	mock.Mock
}

func (*Light) CachedColor added in v0.3.0

func (_m *Light) CachedColor() common.Color

func (*Light) GetColor

func (_m *Light) GetColor() (common.Color, error)

func (*Light) SetColor

func (_m *Light) SetColor(color common.Color, duration time.Duration) error

func (*Light) SetPowerDuration

func (_m *Light) SetPowerDuration(state bool, duration time.Duration) error

type Location added in v0.2.0

type Location struct {
	Group
	mock.Mock
}

type Logger

type Logger struct {
	mock.Mock
}

func (*Logger) Debugf

func (_m *Logger) Debugf(format string, args ...interface{})

func (*Logger) Errorf

func (_m *Logger) Errorf(format string, args ...interface{})

func (*Logger) Fatalf

func (_m *Logger) Fatalf(format string, args ...interface{})

func (*Logger) Infof

func (_m *Logger) Infof(format string, args ...interface{})

func (*Logger) Panicf

func (_m *Logger) Panicf(format string, args ...interface{})

func (*Logger) Warnf

func (_m *Logger) Warnf(format string, args ...interface{})

type Protocol

type Protocol struct {
	SubscriptionTarget
	mock.Mock
}

func (*Protocol) Close

func (_m *Protocol) Close() error

func (*Protocol) Discover

func (_m *Protocol) Discover() error

func (*Protocol) SetClient

func (_m *Protocol) SetClient(client common.Client)

func (*Protocol) SetColor

func (_m *Protocol) SetColor(color common.Color, duration time.Duration) error

func (*Protocol) SetPower

func (_m *Protocol) SetPower(state bool) error

func (*Protocol) SetPowerDuration

func (_m *Protocol) SetPowerDuration(state bool, duration time.Duration) error

type SubscriptionTarget

type SubscriptionTarget struct {
	mock.Mock
}

func (*SubscriptionTarget) CloseSubscription

func (_m *SubscriptionTarget) CloseSubscription(_a0 *common.Subscription) error

func (*SubscriptionTarget) NewSubscription

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

Jump to

Keyboard shortcuts

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