devicedb

package
v0.0.0-...-fa08612 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceDB

type DeviceDB interface {
	CheckDB() errors.Error
	Close() errors.Error
	GetProduct(deviceID string, fw *dto.FirmwareVersion) (*dto.Device, errors.Error)
	GetPeripheralProduct(peripheralID string, parentProductID int) (*dto.Device, errors.Error)
	GetConversionTable(productID int) (*dto.ConversionTable, errors.Error)
	GetCommandTree(productID int, mod Modified) (*dto.CommandNode, errors.Error)
	GetSettingsTable(productID int, mod Modified) (*dto.SettingsTable, errors.Error)
	GetBinarySettingsTable(productID int) (*dto.BinarySettingsTable, errors.Error)
	GetBinaryCommandsTable(productID int) (*dto.BinaryCommandsTable, errors.Error)
	GetBinaryRepliesTable(productID int) (*dto.BinaryRepliesTable, errors.Error)
	GetCapabilities(productID int, mod Modified) ([]string, errors.Error)
	GetSupportedPeripherals(productID int) ([]*dto.SupportedPeripheral, errors.Error)
	GetDefaultSettings(productID int) (map[string]string, errors.Error)
	GetServoTuningInfo(productID int) (*dto.ServoTuningInfo, errors.Error)
	GetSaveRestoreVersion(productID int) (int, errors.Error)
	GetFileChecksum() (string, errors.Error)
	SearchProduct(query *api.ProductSearchQuery) (*dto.FoundProducts, errors.Error)
}

func NewDeviceDB

func NewDeviceDB(dbFilePath string) DeviceDB

type Modified

type Modified struct {
	Self   bool
	Parent bool
}

Jump to

Keyboard shortcuts

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