Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteToJSON ¶
WriteToJSON writes the data to JSON
Types ¶
type ByProductType ¶
type ByProductType struct{ Devices }
func (ByProductType) Less ¶
func (s ByProductType) Less(i, j int) bool
type Device ¶
type Device struct { Target string `gorm:"column:Target;primary_key" json:"target,omitempty"` TargetType string `gorm:"column:TargetType" json:"target_type,omitempty"` TargetVariant string `gorm:"column:TargetVariant" json:"target_variant,omitempty"` Platform string `gorm:"column:Platform" json:"platform,omitempty"` ProductType string `gorm:"column:ProductType" json:"product_type,omitempty"` ProductDescription string `gorm:"column:ProductDescription" json:"product_description,omitempty"` CompatibleDeviceFallback string `gorm:"column:CompatibleDeviceFallback" json:"compatible_device_fallback,omitempty"` DeviceTrait DeviceTrait `gorm:"foreignkey:DeviceTraitSet" json:"traits,omitempty"` DeviceTraitSet int `gorm:"column:DeviceTraitSet" json:"-"` }
Device object
func GetDeviceForModel ¶
GetDeviceForModel returns the device matching a given model
func GetDeviceForProd ¶
GetDeviceForProd returns the device matching a given product type
func GetDevices ¶
GetDevices reads the devices from embedded JSON
type DeviceTrait ¶
type DeviceTrait struct { DeviceTraitSetID int `gorm:"column:DeviceTraitSetID;primary_key" json:"-"` PreferredArchitecture string `gorm:"column:PreferredArchitecture" json:"preferred_architecture,omitempty"` ArtworkDeviceIdiom string `gorm:"column:ArtworkDeviceIdiom" json:"artwork_device_idiom,omitempty"` ArtworkHostedIdioms string `gorm:"column:ArtworkHostedIdioms" json:"artwork_hosted_idioms,omitempty"` ArtworkScaleFactor int `gorm:"column:ArtworkScaleFactor" json:"artwork_scale_factor,omitempty"` ArtworkDeviceSubtype int `gorm:"column:ArtworkDeviceSubtype" json:"artwork_device_subtype,omitempty"` ArtworkDisplayGamut string `gorm:"column:ArtworkDisplayGamut" json:"artwork_display_gamut,omitempty"` ArtworkDynamicDisplayMode string `gorm:"column:ArtworkDynamicDisplayMode" json:"artwork_dynamic_display_mode,omitempty"` DevicePerformanceMemoryClass int `gorm:"column:DevicePerformanceMemoryClass" json:"device_performance_memory_class,omitempty"` GraphicsFeatureSetClass string `gorm:"column:GraphicsFeatureSetClass" json:"graphics_feature_set_class,omitempty"` GraphicsFeatureSetFallbacks string `gorm:"column:GraphicsFeatureSetFallbacks" json:"graphics_feature_set_fallbacks,omitempty"` }
DeviceTrait object
func (DeviceTrait) TableName ¶
func (DeviceTrait) TableName() string
TableName returns the table name for the DeviceTrait object
Click to show internal directories.
Click to hide internal directories.