Documentation
¶
Index ¶
- type MockClient
- type MockLights
- func (_m *MockLights) Delete(id string) error
- func (_m *MockLights) EXPECT() *_MockLightsRecorder
- func (_m *MockLights) Get(id string) (*message.Light, error)
- func (_m *MockLights) GetAll() (map[string]message.Light, error)
- func (_m *MockLights) GetNew() (*message.GetNewResp, error)
- func (_m *MockLights) Rename(id string, name string) error
- func (_m *MockLights) Set(id string, state message.NewLightState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
Mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
func (*MockClient) Do ¶
func (_m *MockClient) Do(method string, address string, message []byte, resp interface{}) error
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *_MockClientRecorder
type MockLights ¶
type MockLights struct {
// contains filtered or unexported fields
}
Mock of Lights interface
func NewMockLights ¶
func NewMockLights(ctrl *gomock.Controller) *MockLights
func (*MockLights) Delete ¶
func (_m *MockLights) Delete(id string) error
func (*MockLights) EXPECT ¶
func (_m *MockLights) EXPECT() *_MockLightsRecorder
func (*MockLights) GetNew ¶
func (_m *MockLights) GetNew() (*message.GetNewResp, error)
func (*MockLights) Set ¶
func (_m *MockLights) Set(id string, state message.NewLightState) error
Click to show internal directories.
Click to hide internal directories.