generic

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

type Device struct {
	Config *models.Device
	// contains filtered or unexported fields
}

func (*Device) ActionHandlers

func (d *Device) ActionHandlers() []action.ActionHandler

func (*Device) AddActionHandler

func (d *Device) AddActionHandler(handler action.ActionHandler)

func (*Device) Cancel

func (d *Device) Cancel()

func (*Device) Connection

func (d *Device) Connection() *device.Connection

func (*Device) Data

func (d *Device) Data(source, path string)

func (*Device) Error

func (d *Device) Error(source, format string, params ...interface{})

func (*Device) Exception

func (d *Device) Exception(source, format string, params ...interface{})

func (*Device) GetConfig

func (d *Device) GetConfig() *models.Device

func (*Device) IsLocked

func (d *Device) IsLocked() bool

func (*Device) Lock

func (d *Device) Lock() error

func (*Device) Log

func (d *Device) Log(source, format string, params ...interface{})

func (*Device) LogPerformance

func (d *Device) LogPerformance(checkpoint string, cpu, fps, mem float32, other string)

func (*Device) NewContext

func (d *Device) NewContext() context.Context

func (*Device) RemoveActionHandler

func (d *Device) RemoveActionHandler(handler action.ActionHandler)

func (*Device) SetConfig

func (d *Device) SetConfig(config *models.Device)

func (*Device) SetConnection

func (d *Device) SetConnection(connection *device.Connection)

func (*Device) SetLogWriter

func (d *Device) SetLogWriter(writer device.LogWriter)

func (*Device) Unlock

func (d *Device) Unlock() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL