Documentation
¶
Overview ¶
Package manager is a generated GoMock package.
Index ¶
- type DeviceManager
- type MockDeviceManager
- func (m *MockDeviceManager) Close() error
- func (m *MockDeviceManager) EXPECT() *MockDeviceManagerMockRecorder
- func (m *MockDeviceManager) Enumerate(vendorID, productID gousb.ID) (hid.DeviceInfos, error)
- func (m *MockDeviceManager) Open(vendorID, productID gousb.ID, config hid.DeviceConfig) (hid.Device, error)
- type MockDeviceManagerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceManager ¶
type DeviceManager interface {
Close() error
Enumerate(vendorID gousb.ID, productID gousb.ID) (hid.DeviceInfos, error)
Open(vendorID, productID gousb.ID, config hid.DeviceConfig) (hid.Device, error)
}
func NewDeviceManager ¶
func NewDeviceManager(ctx usb.Context, logger *slog.Logger) DeviceManager
type MockDeviceManager ¶
type MockDeviceManager struct {
// contains filtered or unexported fields
}
MockDeviceManager is a mock of DeviceManager interface.
func NewMockDeviceManager ¶
func NewMockDeviceManager(ctrl *gomock.Controller) *MockDeviceManager
NewMockDeviceManager creates a new mock instance.
func (*MockDeviceManager) Close ¶
func (m *MockDeviceManager) Close() error
Close mocks base method.
func (*MockDeviceManager) EXPECT ¶
func (m *MockDeviceManager) EXPECT() *MockDeviceManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeviceManager) Enumerate ¶
func (m *MockDeviceManager) Enumerate(vendorID, productID gousb.ID) (hid.DeviceInfos, error)
Enumerate mocks base method.
func (*MockDeviceManager) Open ¶
func (m *MockDeviceManager) Open(vendorID, productID gousb.ID, config hid.DeviceConfig) (hid.Device, error)
Open mocks base method.
type MockDeviceManagerMockRecorder ¶
type MockDeviceManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceManagerMockRecorder is the mock recorder for MockDeviceManager.
func (*MockDeviceManagerMockRecorder) Close ¶
func (mr *MockDeviceManagerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
Click to show internal directories.
Click to hide internal directories.