Documentation ¶
Index ¶
- type CreateDeviceTypeAttribute
- type DeviceIntegration
- type DeviceMake
- type DeviceStyle
- type DeviceType
- type DeviceTypeAttribute
- type ExternalID
- type GetDeviceDefinitionQueryResult
- type GetDeviceStyleQueryResult
- type GetDeviceTypeAttributeQueryResult
- type GetDeviceTypeQueryResult
- type GetIntegrationFeatureQueryResult
- type GetIntegrationQueryResult
- type IntegrationsMetadata
- type PowertrainType
- type UpdateDeviceTypeAttribute
- type VehicleInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDeviceTypeAttribute ¶ added in v0.2.3
type DeviceIntegration ¶ added in v0.1.24
type DeviceIntegration struct { ID string `json:"id"` Type string `json:"type"` Style string `json:"style"` Vendor string `json:"vendor"` Region string `json:"region"` // Features is what specific features this device supports, previously known as capabilities Features json.RawMessage `json:"capabilities"` }
type DeviceMake ¶
type DeviceMake struct { ID string `json:"id"` Name string `json:"name"` LogoURL null.String `json:"logo_url"` OemPlatformName null.String `json:"oem_platform_name"` TokenID *big.Int `json:"tokenId,omitempty"` NameSlug string `json:"nameSlug"` ExternalIds json.RawMessage `json:"external_ids"` ExternalIdsTyped []*ExternalID `json:"externalIdsTyped"` }
type DeviceStyle ¶ added in v0.1.24
type DeviceType ¶
type DeviceType struct { // Type is eg. Vehicle, E-bike, roomba Type string `json:"type"` Make string `json:"make"` Model string `json:"model"` Year int `json:"year"` SubModels []string `json:"subModels"` MakeSlug string `json:"makeSlug"` ModelSlug string `json:"modelSlug"` }
DeviceType whether it is a vehicle or other type and basic information
type DeviceTypeAttribute ¶ added in v0.2.0
type ExternalID ¶ added in v0.3.3
type GetDeviceDefinitionQueryResult ¶
type GetDeviceDefinitionQueryResult struct { DeviceDefinitionID string `json:"deviceDefinitionId"` ExternalID string `json:"external_id"` Name string `json:"name"` ImageURL string `json:"imageUrl"` Source string `json:"source"` DeviceMake DeviceMake `json:"make"` Type DeviceType `json:"type"` VehicleInfo VehicleInfo `json:"vehicleData,omitempty"` Metadata interface{} `json:"metadata"` Verified bool `json:"verified"` ExternalIds []*ExternalID `json:"externalIds"` // DeviceIntegrations has integrations this vehicle can integrate with, from table device_integrations DeviceIntegrations []DeviceIntegration `json:"deviceIntegrations"` CompatibleIntegrations []DeviceIntegration `json:"compatibleIntegrations"` DeviceStyles []DeviceStyle `json:"deviceStyles"` DeviceAttributes []DeviceTypeAttribute `json:"deviceAttributes"` }
type GetDeviceStyleQueryResult ¶ added in v0.1.27
type GetDeviceTypeAttributeQueryResult ¶ added in v0.2.0
type GetDeviceTypeQueryResult ¶ added in v0.2.0
type GetDeviceTypeQueryResult struct { ID string `json:"id"` Name string `json:"name"` Metadatakey string `json:"metadata_key"` Attributes []GetDeviceTypeAttributeQueryResult `json:"attributes"` }
type GetIntegrationFeatureQueryResult ¶ added in v0.3.5
type GetIntegrationFeatureQueryResult struct { FeatureKey string `json:"feature_key"` ElasticProperty string `json:"elastic_property"` DisplayName string `json:"display_name"` CSSIcon string `json:"css_icon,omitempty"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` FeatureWeight float64 `json:"feature_weight,omitempty"` }
type GetIntegrationQueryResult ¶ added in v0.1.26
type GetIntegrationQueryResult struct { ID string `json:"id"` Type string `json:"type"` Style string `json:"style"` Vendor string `json:"vendor"` AutoPiDefaultTemplateID int `json:"auto_pi_default_template_id"` RefreshLimitSecs int `json:"refresh_limit_secs"` AutoPiPowertrainToTemplateID map[PowertrainType]int `json:"auto_pi_power_train_to_template_id,omitempty"` }
type IntegrationsMetadata ¶ added in v0.1.10
type IntegrationsMetadata struct { AutoPiDefaultTemplateID int `json:"autoPiDefaultTemplateId"` AutoPiPowertrainToTemplateID map[PowertrainType]int `json:"autoPiPowertrainToTemplateId,omitempty"` }
IntegrationsMetadata represents json stored in integrations table metadata jsonb column
type PowertrainType ¶ added in v0.1.10
type PowertrainType string
const ( ICE PowertrainType = "ICE" HEV PowertrainType = "HEV" PHEV PowertrainType = "PHEV" BEV PowertrainType = "BEV" FCEV PowertrainType = "FCEV" )
func (PowertrainType) String ¶ added in v0.1.10
func (p PowertrainType) String() string
func (*PowertrainType) UnmarshalJSON ¶ added in v0.1.10
func (p *PowertrainType) UnmarshalJSON(b []byte) error
type UpdateDeviceTypeAttribute ¶ added in v0.2.0
type VehicleInfo ¶ added in v0.1.24
type VehicleInfo struct { FuelType string `json:"fuel_type,omitempty"` DrivenWheels string `json:"driven_wheels,omitempty"` NumberOfDoors string `json:"number_of_doors,omitempty"` BaseMSRP int `json:"base_msrp,omitempty"` EPAClass string `json:"epa_class,omitempty"` VehicleType string `json:"vehicle_type,omitempty"` // VehicleType PASSENGER CAR, from NHTSA MPGHighway string `json:"mpg_highway,omitempty"` MPGCity string `json:"mpg_city,omitempty"` FuelTankCapacityGal string `json:"fuel_tank_capacity_gal,omitempty"` MPG string `json:"mpg,omitempty"` }
VehicleInfo represents some standard vehicle specific properties stored in the metadata json field in DB
Click to show internal directories.
Click to hide internal directories.