Documentation ¶
Index ¶
- Variables
- type Client
- func (cli *Client) Close() error
- func (cli *Client) List(remote string, code ...string) (replies []string, err error)
- func (cli *Client) SendOnce(remote string, code ...string) (err error)
- func (cli *Client) SendStart(remote string, code string) (err error)
- func (cli *Client) SendStop(remote string, code string) (err error)
- func (cli *Client) Version() (version string, err error)
- type ClientAPI
- type MockClientAPI
- func (_m *MockClientAPI) Close() error
- func (_m *MockClientAPI) EXPECT() *_MockClientAPIRecorder
- func (_m *MockClientAPI) List(remote string, code ...string) ([]string, error)
- func (_m *MockClientAPI) SendOnce(remote string, code ...string) error
- func (_m *MockClientAPI) SendStart(remote string, code string) error
- func (_m *MockClientAPI) SendStop(remote string, code string) error
- func (_m *MockClientAPI) Version() (string, error)
- type Reply
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidReplies because lircd replies invalid format data ErrInvalidReplies = errors.New("invalid replies") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client for lircd
type ClientAPI ¶ added in v0.2.11
type ClientAPI interface { Version() (version string, err error) List(remote string, code ...string) (replies []string, err error) SendOnce(remote string, code ...string) (err error) SendStart(remote string, code string) (err error) SendStop(remote string, code string) (err error) Close() error // contains filtered or unexported methods }
ClientAPI represents LIRC Client
type MockClientAPI ¶ added in v0.2.11
type MockClientAPI struct {
// contains filtered or unexported fields
}
Mock of ClientAPI interface
func NewMockClientAPI ¶ added in v0.2.11
func NewMockClientAPI(ctrl *gomock.Controller) *MockClientAPI
func (*MockClientAPI) Close ¶ added in v0.2.11
func (_m *MockClientAPI) Close() error
func (*MockClientAPI) EXPECT ¶ added in v0.2.11
func (_m *MockClientAPI) EXPECT() *_MockClientAPIRecorder
func (*MockClientAPI) List ¶ added in v0.2.11
func (_m *MockClientAPI) List(remote string, code ...string) ([]string, error)
func (*MockClientAPI) SendOnce ¶ added in v0.2.11
func (_m *MockClientAPI) SendOnce(remote string, code ...string) error
func (*MockClientAPI) SendStart ¶ added in v0.2.11
func (_m *MockClientAPI) SendStart(remote string, code string) error
func (*MockClientAPI) SendStop ¶ added in v0.2.11
func (_m *MockClientAPI) SendStop(remote string, code string) error
func (*MockClientAPI) Version ¶ added in v0.2.11
func (_m *MockClientAPI) Version() (string, error)
Click to show internal directories.
Click to hide internal directories.