Documentation ¶
Index ¶
- type BulkValidateVinCommand
- type BulkValidateVinCommandHandler
- type BulkValidateVinCommandResult
- type CreateDeviceDefinitionCommand
- type CreateDeviceDefinitionCommandHandler
- type CreateDeviceDefinitionCommandResult
- type CreateDeviceIntegrationCommand
- type CreateDeviceIntegrationCommandHandler
- type CreateDeviceIntegrationCommandResult
- type CreateDeviceMakeCommand
- type CreateDeviceMakeCommandHandler
- type CreateDeviceMakeCommandResult
- type CreateDeviceStyleCommand
- type CreateDeviceStyleCommandHandler
- type CreateDeviceStyleCommandResult
- type CreateDeviceTypeCommand
- type CreateDeviceTypeCommandHandler
- type CreateDeviceTypeCommandResult
- type CreateIntegrationCommand
- type CreateIntegrationCommandHandler
- type CreateIntegrationCommandResult
- type DecodedVIN
- type DeleteDeviceTypeCommand
- type DeleteDeviceTypeCommandHandler
- type DeleteDeviceTypeCommandResult
- type SyncPowerTrainTypeCommand
- type SyncPowerTrainTypeCommandHandler
- type SyncPowerTrainTypeCommandResult
- type UpdateDeviceMakeCommand
- type UpdateDeviceMakeCommandHandler
- type UpdateDeviceMakeCommandResult
- type UpdateDeviceStyleCommand
- type UpdateDeviceStyleCommandHandler
- type UpdateDeviceStyleCommandResult
- type UpdateDeviceTypeCommand
- type UpdateDeviceTypeCommandHandler
- type UpdateDeviceTypeCommandResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkValidateVinCommand ¶ added in v0.8.3
type BulkValidateVinCommand struct {
VINs []string `json:"vins"`
}
func (*BulkValidateVinCommand) Key ¶ added in v0.8.3
func (*BulkValidateVinCommand) Key() string
type BulkValidateVinCommandHandler ¶ added in v0.8.3
type BulkValidateVinCommandHandler struct { DBS func() *db.ReaderWriter DecodeVINHandler queries.DecodeVINQueryHandler DeviceDefinitionDataHandler queries.GetDeviceDefinitionByIDQueryHandler }
func NewBulkValidateVinCommandHandler ¶ added in v0.8.3
func NewBulkValidateVinCommandHandler(dbs func() *db.ReaderWriter, decodeVINHandler queries.DecodeVINQueryHandler, deviceDefintionDataHandler queries.GetDeviceDefinitionByIDQueryHandler) BulkValidateVinCommandHandler
type BulkValidateVinCommandResult ¶ added in v0.8.3
type BulkValidateVinCommandResult struct { DecodedVINs []DecodedVIN `json:"decoded_vins"` NotDecodedVins []string `json:"not_decoded_vins"` }
type CreateDeviceDefinitionCommand ¶
type CreateDeviceDefinitionCommand struct { Source string `json:"source"` Make string `json:"make"` Model string `json:"model"` Year int `json:"year"` HardwareTemplateID string `json:"hardware_template_id,omitempty"` // DeviceTypeID comes from the device_types.id table, determines what kind of device this is, typically a vehicle DeviceTypeID string `json:"device_type_id"` // DeviceAttributes sets definition metadata eg. vehicle info. Allowed key/values are defined in device_types.properties DeviceAttributes []*coremodels.UpdateDeviceTypeAttribute `json:"deviceAttributes"` Verified bool `json:"verified"` }
func (*CreateDeviceDefinitionCommand) Key ¶
func (*CreateDeviceDefinitionCommand) Key() string
type CreateDeviceDefinitionCommandHandler ¶
type CreateDeviceDefinitionCommandHandler struct { Repository repositories.DeviceDefinitionRepository DBS func() *db.ReaderWriter // contains filtered or unexported fields }
func NewCreateDeviceDefinitionCommandHandler ¶
func NewCreateDeviceDefinitionCommandHandler(repository repositories.DeviceDefinitionRepository, dbs func() *db.ReaderWriter, powerTrainTypeService services.PowerTrainTypeService) CreateDeviceDefinitionCommandHandler
type CreateDeviceIntegrationCommand ¶
type CreateDeviceIntegrationCommand struct { DeviceDefinitionID string `json:"device_definition_id"` IntegrationID string `json:"integration_id"` Region string `json:"region"` Features []*coremodels.UpdateDeviceIntegrationFeatureAttribute `json:"features"` }
func (*CreateDeviceIntegrationCommand) Key ¶
func (*CreateDeviceIntegrationCommand) Key() string
type CreateDeviceIntegrationCommandHandler ¶
type CreateDeviceIntegrationCommandHandler struct { Repository repositories.DeviceIntegrationRepository DBS func() *db.ReaderWriter DDCache services.DeviceDefinitionCacheService DeviceDefinitionRepository repositories.DeviceDefinitionRepository }
func NewCreateDeviceIntegrationCommandHandler ¶
func NewCreateDeviceIntegrationCommandHandler(repository repositories.DeviceIntegrationRepository, dbs func() *db.ReaderWriter, cache services.DeviceDefinitionCacheService, deviceDefinitionRepository repositories.DeviceDefinitionRepository) CreateDeviceIntegrationCommandHandler
type CreateDeviceIntegrationCommandResult ¶
type CreateDeviceIntegrationCommandResult struct {
ID string `json:"id"`
}
type CreateDeviceMakeCommand ¶ added in v0.1.26
type CreateDeviceMakeCommand struct { Name string `json:"name"` LogoURL string `json:"logo_url"` ExternalIDs string `json:"external_ids,omitempty"` Metadata string `json:"metadata,omitempty"` HardwareTemplateID string `json:"hardware_template_id,omitempty"` }
func (*CreateDeviceMakeCommand) Key ¶ added in v0.1.26
func (*CreateDeviceMakeCommand) Key() string
type CreateDeviceMakeCommandHandler ¶ added in v0.1.26
type CreateDeviceMakeCommandHandler struct {
Repository repositories.DeviceMakeRepository
}
func NewCreateDeviceMakeCommandHandler ¶ added in v0.1.26
func NewCreateDeviceMakeCommandHandler(repository repositories.DeviceMakeRepository) CreateDeviceMakeCommandHandler
type CreateDeviceMakeCommandResult ¶ added in v0.1.26
type CreateDeviceMakeCommandResult struct {
ID string `json:"id"`
}
type CreateDeviceStyleCommand ¶ added in v0.1.11
type CreateDeviceStyleCommand struct { DeviceDefinitionID string `json:"device_definition_id"` Name string `json:"name"` ExternalStyleID string `json:"external_style_id"` Source string `json:"source"` SubModel string `json:"sub_model"` HardwareTemplateID string `json:"hardware_template_id"` }
func (*CreateDeviceStyleCommand) Key ¶ added in v0.1.11
func (*CreateDeviceStyleCommand) Key() string
type CreateDeviceStyleCommandHandler ¶ added in v0.1.11
type CreateDeviceStyleCommandHandler struct {
// contains filtered or unexported fields
}
func NewCreateDeviceStyleCommandHandler ¶ added in v0.1.11
func NewCreateDeviceStyleCommandHandler(repository repositories.DeviceStyleRepository, cache services.DeviceDefinitionCacheService) CreateDeviceStyleCommandHandler
type CreateDeviceStyleCommandResult ¶ added in v0.1.11
type CreateDeviceStyleCommandResult struct {
ID string `json:"id"`
}
type CreateDeviceTypeCommand ¶ added in v0.2.3
func (*CreateDeviceTypeCommand) Key ¶ added in v0.2.3
func (*CreateDeviceTypeCommand) Key() string
type CreateDeviceTypeCommandHandler ¶ added in v0.2.3
type CreateDeviceTypeCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateDeviceTypeCommandHandler ¶ added in v0.2.3
func NewCreateDeviceTypeCommandHandler(dbs func() *db.ReaderWriter) CreateDeviceTypeCommandHandler
type CreateDeviceTypeCommandResult ¶ added in v0.2.3
type CreateDeviceTypeCommandResult struct {
ID string `json:"id"`
}
type CreateIntegrationCommand ¶ added in v0.1.28
type CreateIntegrationCommand struct { Vendor string `json:"vendor"` Type string `json:"type"` Style string `json:"style"` TokenID int `json:"token_id"` }
func (*CreateIntegrationCommand) Key ¶ added in v0.1.28
func (*CreateIntegrationCommand) Key() string
type CreateIntegrationCommandHandler ¶ added in v0.1.28
type CreateIntegrationCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateIntegrationCommandHandler ¶ added in v0.1.28
func NewCreateIntegrationCommandHandler(dbs func() *db.ReaderWriter) CreateIntegrationCommandHandler
type CreateIntegrationCommandResult ¶ added in v0.1.28
type CreateIntegrationCommandResult struct {
ID string `json:"id"`
}
type DecodedVIN ¶ added in v0.8.3
type DeleteDeviceTypeCommand ¶ added in v0.2.3
type DeleteDeviceTypeCommand struct {
ID string `json:"id"`
}
func (*DeleteDeviceTypeCommand) Key ¶ added in v0.2.3
func (*DeleteDeviceTypeCommand) Key() string
type DeleteDeviceTypeCommandHandler ¶ added in v0.2.3
type DeleteDeviceTypeCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewDeleteDeviceTypeCommandHandler ¶ added in v0.2.3
func NewDeleteDeviceTypeCommandHandler(dbs func() *db.ReaderWriter) DeleteDeviceTypeCommandHandler
type DeleteDeviceTypeCommandResult ¶ added in v0.2.3
type DeleteDeviceTypeCommandResult struct {
ID string `json:"id"`
}
type SyncPowerTrainTypeCommand ¶ added in v1.0.14
func (*SyncPowerTrainTypeCommand) Key ¶ added in v1.0.14
func (*SyncPowerTrainTypeCommand) Key() string
type SyncPowerTrainTypeCommandHandler ¶ added in v1.0.14
type SyncPowerTrainTypeCommandHandler struct { DBS func() *db.ReaderWriter // contains filtered or unexported fields }
func NewSyncPowerTrainTypeCommandHandler ¶ added in v1.0.14
func NewSyncPowerTrainTypeCommandHandler(dbs func() *db.ReaderWriter, logger zerolog.Logger, powerTrainTypeService services.PowerTrainTypeService) SyncPowerTrainTypeCommandHandler
type SyncPowerTrainTypeCommandResult ¶ added in v1.0.14
type SyncPowerTrainTypeCommandResult struct {
Status bool
}
type UpdateDeviceMakeCommand ¶ added in v0.1.38
type UpdateDeviceMakeCommand 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"` ExternalIDs json.RawMessage `json:"external_ids"` Metadata json.RawMessage `json:"metadata"` HardwareTemplateID string `json:"hardware_template_id,omitempty"` }
func (*UpdateDeviceMakeCommand) Key ¶ added in v0.1.38
func (*UpdateDeviceMakeCommand) Key() string
type UpdateDeviceMakeCommandHandler ¶ added in v0.1.38
type UpdateDeviceMakeCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateDeviceMakeCommandHandler ¶ added in v0.1.38
func NewUpdateDeviceMakeCommandHandler(dbs func() *db.ReaderWriter) UpdateDeviceMakeCommandHandler
type UpdateDeviceMakeCommandResult ¶ added in v0.1.38
type UpdateDeviceMakeCommandResult struct {
ID string `json:"id"`
}
type UpdateDeviceStyleCommand ¶ added in v0.1.38
type UpdateDeviceStyleCommand struct { ID string `json:"id"` DeviceDefinitionID string `json:"device_definition_id"` Name string `json:"name"` ExternalStyleID string `json:"external_style_id"` Source string `json:"source"` SubModel string `json:"sub_model"` HardwareTemplateID string `json:"hardware_template_id,omitempty"` }
func (*UpdateDeviceStyleCommand) Key ¶ added in v0.1.38
func (*UpdateDeviceStyleCommand) Key() string
type UpdateDeviceStyleCommandHandler ¶ added in v0.1.38
type UpdateDeviceStyleCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateDeviceStyleCommandHandler ¶ added in v0.1.38
func NewUpdateDeviceStyleCommandHandler(dbs func() *db.ReaderWriter) UpdateDeviceStyleCommandHandler
type UpdateDeviceStyleCommandResult ¶ added in v0.1.38
type UpdateDeviceStyleCommandResult struct {
ID string `json:"id"`
}
type UpdateDeviceTypeCommand ¶ added in v0.2.3
type UpdateDeviceTypeCommand struct { ID string `json:"id"` Name string `json:"name"` DeviceAttributes []*coremodels.CreateDeviceTypeAttribute `json:"deviceAttributes"` }
func (*UpdateDeviceTypeCommand) Key ¶ added in v0.2.3
func (*UpdateDeviceTypeCommand) Key() string
type UpdateDeviceTypeCommandHandler ¶ added in v0.2.3
type UpdateDeviceTypeCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateDeviceTypeCommandHandler ¶ added in v0.2.3
func NewUpdateDeviceTypeCommandHandler(dbs func() *db.ReaderWriter) UpdateDeviceTypeCommandHandler
type UpdateDeviceTypeCommandResult ¶ added in v0.2.3
type UpdateDeviceTypeCommandResult struct {
ID string `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.