Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceDefinitionRepository ¶
type DeviceDefinitionRepository interface { GetByID(ctx context.Context, id string) (*models.DeviceDefinition, error) GetByMakeModelAndYears(ctx context.Context, make string, model string, year int, loadIntegrations bool) (*models.DeviceDefinition, error) GetAll(ctx context.Context, verified bool) ([]*models.DeviceDefinition, error) GetWithIntegrations(ctx context.Context, id string) (*models.DeviceDefinition, error) GetOrCreate(ctx context.Context, source string, make string, model string, year int) (*models.DeviceDefinition, error) }
func NewDeviceDefinitionRepository ¶
func NewDeviceDefinitionRepository(dbs func() *db.ReaderWriter) DeviceDefinitionRepository
type DeviceIntegrationRepository ¶ added in v0.1.4
type DeviceIntegrationRepository interface {
Create(ctx context.Context, deviceDefinitionID string, integrationID string, region string) (*models.DeviceIntegration, error)
}
func NewDeviceIntegrationRepository ¶ added in v0.1.4
func NewDeviceIntegrationRepository(dbs func() *db.ReaderWriter) DeviceIntegrationRepository
type DeviceMakeRepository ¶
type DeviceMakeRepository interface { GetAll(ctx context.Context) ([]*models.DeviceMake, error) GetOrCreate(ctx context.Context, makeName string) (*models.DeviceMake, error) }
func NewDeviceMakeRepository ¶
func NewDeviceMakeRepository(dbs func() *db.ReaderWriter) DeviceMakeRepository
type DeviceStyleRepository ¶ added in v0.1.11
type DeviceStyleRepository interface {
Create(ctx context.Context, deviceDefinitionID string, name string, externalStyleID string, source string, subModel string) (*models.DeviceStyle, error)
}
func NewDeviceStyleRepository ¶ added in v0.1.11
func NewDeviceStyleRepository(dbs func() *db.ReaderWriter) DeviceStyleRepository
type IntegrationsMetadata ¶ added in v0.1.9
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.9
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.9
func (p PowertrainType) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.