Documentation ¶
Index ¶
- Constants
- Variables
- type Device
- func (d *Device) ActionHandlers() []action.ActionHandler
- func (d *Device) AddActionHandler(handler action.ActionHandler)
- func (d *Device) Cancel()
- func (d *Device) Connection() *device.Connection
- func (d *Device) Data(source, path string)
- func (d *Device) Error(source, format string, params ...interface{})
- func (d *Device) Exception(source, format string, params ...interface{})
- func (d *Device) GetConfig() *models.Device
- func (d *Device) IsLocked() bool
- func (d *Device) Lock() error
- func (d *Device) Log(source, format string, params ...interface{})
- func (d *Device) LogPerformance(checkpoint string, cpu, fps, mem float32, other string)
- func (d *Device) NewContext() context.Context
- func (d *Device) RemoveActionHandler(handler action.ActionHandler)
- func (d *Device) SetConfig(config *models.Device)
- func (d *Device) SetConnection(connection *device.Connection)
- func (d *Device) SetLogWriter(writer device.LogWriter)
- func (d *Device) Unlock() error
Constants ¶
View Source
const (
AttributePin = "PIN"
)
Variables ¶
View Source
var ( DeviceLockedError = fmt.Errorf("can't lock device, device is already locked") DeviceUnlockedError = fmt.Errorf("can't unlock device, device was not locked") )
Functions ¶
This section is empty.
Types ¶
type Device ¶
func (*Device) ActionHandlers ¶
func (d *Device) ActionHandlers() []action.ActionHandler
func (*Device) AddActionHandler ¶
func (d *Device) AddActionHandler(handler action.ActionHandler)
func (*Device) Connection ¶
func (d *Device) Connection() *device.Connection
func (*Device) LogPerformance ¶
func (*Device) NewContext ¶
func (*Device) RemoveActionHandler ¶
func (d *Device) RemoveActionHandler(handler action.ActionHandler)
func (*Device) SetConnection ¶
func (d *Device) SetConnection(connection *device.Connection)
func (*Device) SetLogWriter ¶
Click to show internal directories.
Click to hide internal directories.