Documentation
¶
Index ¶
- type DeviceDefinitionQueryResponse
- type GetAllDeviceDefinitionQuery
- type GetAllDeviceDefinitionQueryHandler
- type GetAllDeviceDefinitionQueryResult
- type GetAllIntegrationQuery
- type GetAllIntegrationQueryHandler
- type GetAllIntegrationQueryResult
- type GetDeviceDefinitionByDynamicFilterQuery
- type GetDeviceDefinitionByDynamicFilterQueryHandler
- type GetDeviceDefinitionByIDQuery
- type GetDeviceDefinitionByIDQueryHandler
- type GetDeviceDefinitionByIdsQuery
- type GetDeviceDefinitionByIdsQueryHandler
- type GetDeviceDefinitionByMakeModelYearQuery
- type GetDeviceDefinitionByMakeModelYearQueryHandler
- type GetDeviceDefinitionWithRelsQuery
- type GetDeviceDefinitionWithRelsQueryHandler
- type GetDeviceDefinitionWithRelsQueryResult
- type GetDeviceModelYear
- type GetDeviceModels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceDefinitionQueryResponse ¶ added in v0.1.9
type DeviceDefinitionQueryResponse struct {
ID string `json:"id"`
Model string `json:"model"`
Year int `json:"year"`
ImageURL null.String `json:"image_url"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
Metadata null.JSON `json:"metadata"`
Source null.String `json:"source"`
Verified bool `json:"verified"`
ExternalID null.String `json:"external_id"`
DeviceMakeID string `json:"device_make_id"`
Make string `json:"make"`
}
type GetAllDeviceDefinitionQuery ¶
type GetAllDeviceDefinitionQuery struct {
}
func (*GetAllDeviceDefinitionQuery) Key ¶
func (*GetAllDeviceDefinitionQuery) Key() string
type GetAllDeviceDefinitionQueryHandler ¶
type GetAllDeviceDefinitionQueryHandler struct {
Repository repositories.DeviceDefinitionRepository
MakeRepository repositories.DeviceMakeRepository
}
func NewGetAllDeviceDefinitionQueryHandler ¶
func NewGetAllDeviceDefinitionQueryHandler(repository repositories.DeviceDefinitionRepository, makeRepository repositories.DeviceMakeRepository) GetAllDeviceDefinitionQueryHandler
type GetAllDeviceDefinitionQueryResult ¶
type GetAllDeviceDefinitionQueryResult struct {
Make string `json:"make"`
Models []GetDeviceModels `json:"models"`
}
type GetAllIntegrationQuery ¶
type GetAllIntegrationQuery struct {
}
func (*GetAllIntegrationQuery) Key ¶
func (*GetAllIntegrationQuery) Key() string
type GetAllIntegrationQueryHandler ¶
type GetAllIntegrationQueryHandler struct {
DBS func() *db.ReaderWriter
}
func NewGetAllIntegrationQueryHandler ¶
func NewGetAllIntegrationQueryHandler(dbs func() *db.ReaderWriter) GetAllIntegrationQueryHandler
type GetAllIntegrationQueryResult ¶
type GetAllIntegrationQueryResult struct {
ID string `json:"id"`
Type string `json:"type"`
Style string `json:"style"`
Vendor string `json:"vendor"`
AutoPiDefaultTemplateID int `json:"autoPiDefaultTemplateId"`
AutoPiPowertrainToTemplateID map[coremodels.PowertrainType]int `json:"autoPiPowertrainToTemplateId,omitempty"`
}
type GetDeviceDefinitionByDynamicFilterQuery ¶ added in v0.1.9
type GetDeviceDefinitionByDynamicFilterQuery struct {
MakeID string `json:"make_id"`
IntegrationID string `json:"integration_id"`
DeviceDefinitionID string `json:"device_definition_id"`
Year int `json:"year"`
Model string `json:"model"`
VerifiedVinList []string `json:"verified_vin_list"`
PageIndex int `json:"page_index"`
PageSize int `json:"page_size"`
}
func (*GetDeviceDefinitionByDynamicFilterQuery) Key ¶ added in v0.1.9
func (*GetDeviceDefinitionByDynamicFilterQuery) Key() string
type GetDeviceDefinitionByDynamicFilterQueryHandler ¶ added in v0.1.9
type GetDeviceDefinitionByDynamicFilterQueryHandler struct {
DBS func() *db.ReaderWriter
}
func NewGetDeviceDefinitionByDynamicFilterQueryHandler ¶ added in v0.1.9
func NewGetDeviceDefinitionByDynamicFilterQueryHandler(dbs func() *db.ReaderWriter) GetDeviceDefinitionByDynamicFilterQueryHandler
type GetDeviceDefinitionByIDQuery ¶ added in v0.1.2
type GetDeviceDefinitionByIDQuery struct {
DeviceDefinitionID string `json:"deviceDefinitionId"`
}
func (*GetDeviceDefinitionByIDQuery) Key ¶ added in v0.1.2
func (*GetDeviceDefinitionByIDQuery) Key() string
type GetDeviceDefinitionByIDQueryHandler ¶ added in v0.1.2
type GetDeviceDefinitionByIDQueryHandler struct {
DDCache services.DeviceDefinitionCacheService
}
func NewGetDeviceDefinitionByIDQueryHandler ¶ added in v0.1.2
func NewGetDeviceDefinitionByIDQueryHandler(cache services.DeviceDefinitionCacheService) GetDeviceDefinitionByIDQueryHandler
type GetDeviceDefinitionByIdsQuery ¶ added in v0.1.2
type GetDeviceDefinitionByIdsQuery struct {
DeviceDefinitionID []string `json:"deviceDefinitionId" validate:"required"`
}
func (*GetDeviceDefinitionByIdsQuery) Key ¶ added in v0.1.2
func (*GetDeviceDefinitionByIdsQuery) Key() string
type GetDeviceDefinitionByIdsQueryHandler ¶ added in v0.1.2
type GetDeviceDefinitionByIdsQueryHandler struct {
DDCache services.DeviceDefinitionCacheService
// contains filtered or unexported fields
}
func NewGetDeviceDefinitionByIdsQueryHandler ¶ added in v0.1.2
func NewGetDeviceDefinitionByIdsQueryHandler(cache services.DeviceDefinitionCacheService, log *zerolog.Logger) GetDeviceDefinitionByIdsQueryHandler
type GetDeviceDefinitionByMakeModelYearQuery ¶
type GetDeviceDefinitionByMakeModelYearQuery struct {
Make string `json:"make" validate:"required"`
Model string `json:"model" validate:"required"`
Year int `json:"year" validate:"required"`
}
func (*GetDeviceDefinitionByMakeModelYearQuery) Key ¶
func (*GetDeviceDefinitionByMakeModelYearQuery) Key() string
type GetDeviceDefinitionByMakeModelYearQueryHandler ¶
type GetDeviceDefinitionByMakeModelYearQueryHandler struct {
DDCache services.DeviceDefinitionCacheService
}
func NewGetDeviceDefinitionByMakeModelYearQueryHandler ¶
func NewGetDeviceDefinitionByMakeModelYearQueryHandler(cache services.DeviceDefinitionCacheService) GetDeviceDefinitionByMakeModelYearQueryHandler
type GetDeviceDefinitionWithRelsQuery ¶
type GetDeviceDefinitionWithRelsQuery struct {
DeviceDefinitionID string `json:"deviceDefinitionId" validate:"required"`
}
func (*GetDeviceDefinitionWithRelsQuery) Key ¶
func (*GetDeviceDefinitionWithRelsQuery) Key() string
type GetDeviceDefinitionWithRelsQueryHandler ¶
type GetDeviceDefinitionWithRelsQueryHandler struct {
Repository repositories.DeviceDefinitionRepository
}
func NewGetDeviceDefinitionWithRelsQueryHandler ¶
func NewGetDeviceDefinitionWithRelsQueryHandler(repository repositories.DeviceDefinitionRepository) GetDeviceDefinitionWithRelsQueryHandler
type GetDeviceModelYear ¶
type GetDeviceModels ¶
type GetDeviceModels struct {
Model string `json:"model"`
Years []GetDeviceModelYear `json:"years"`
}
Click to show internal directories.
Click to hide internal directories.