Documentation
¶
Index ¶
- func ListDevices() []*devices.Info
- type DeviceEvent
- type DeviceEventType
- type Manager
- func (s *Manager) AddDeviceCleanup(id devices.Id, f func())
- func (s *Manager) Cleanup(id devices.Id)
- func (s *Manager) Close(id devices.Id)
- func (s *Manager) CloseAsync(id devices.Id)
- func (s *Manager) GetInfo(id devices.Id) (device *devices.Info, found bool)
- func (s *Manager) IsConnected(id devices.Id) bool
- func (s *Manager) Open(id devices.Id) (devices.Connection, error)
- func (s *Manager) OpenAsync(id devices.Id)
- func (s *Manager) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDevices ¶
Types ¶
type DeviceEvent ¶
type DeviceEvent struct { EventType DeviceEventType Id devices.Id Index int }
func (*DeviceEvent) Fields ¶
func (de *DeviceEvent) Fields() log.Fields
type DeviceEventType ¶
type DeviceEventType int
const ( DeviceRemoved DeviceEventType = iota DeviceAdded )
func (DeviceEventType) String ¶
func (det DeviceEventType) String() string
type Manager ¶
type Manager struct { DeviceChan chan DeviceEvent // contains filtered or unexported fields }
func NewManager ¶
func NewManager() *Manager
func (*Manager) AddDeviceCleanup ¶
func (*Manager) CloseAsync ¶
Click to show internal directories.
Click to hide internal directories.