queries

package
v0.1.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

type GetAllDeviceDefinitionQueryHandler

type GetAllDeviceDefinitionQueryHandler struct {
	Repository     repositories.DeviceDefinitionRepository
	MakeRepository repositories.DeviceMakeRepository
}

func (GetAllDeviceDefinitionQueryHandler) Handle

func (ch GetAllDeviceDefinitionQueryHandler) Handle(ctx context.Context, query mediator.Message) (interface{}, error)

type GetAllDeviceDefinitionQueryResult

type GetAllDeviceDefinitionQueryResult struct {
	Make   string            `json:"make"`
	Models []GetDeviceModels `json:"models"`
}

type GetAllIntegrationQuery

type GetAllIntegrationQuery struct {
}

func (*GetAllIntegrationQuery) Key

type GetAllIntegrationQueryHandler

type GetAllIntegrationQueryHandler struct {
	DBS func() *db.ReaderWriter
}

func NewGetAllIntegrationQueryHandler

func NewGetAllIntegrationQueryHandler(dbs func() *db.ReaderWriter) GetAllIntegrationQueryHandler

func (GetAllIntegrationQueryHandler) Handle

func (ch GetAllIntegrationQueryHandler) Handle(ctx context.Context, query mediator.Message) (interface{}, error)

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

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

func (GetDeviceDefinitionByDynamicFilterQueryHandler) Handle added in v0.1.9

type GetDeviceDefinitionByIDQuery added in v0.1.2

type GetDeviceDefinitionByIDQuery struct {
	DeviceDefinitionID string `json:"deviceDefinitionId"`
}

func (*GetDeviceDefinitionByIDQuery) Key added in v0.1.2

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

func (GetDeviceDefinitionByIDQueryHandler) Handle added in v0.1.2

func (ch GetDeviceDefinitionByIDQueryHandler) Handle(ctx context.Context, query mediator.Message) (interface{}, error)

type GetDeviceDefinitionByIdsQuery added in v0.1.2

type GetDeviceDefinitionByIdsQuery struct {
	DeviceDefinitionID []string `json:"deviceDefinitionId" validate:"required"`
}

func (*GetDeviceDefinitionByIdsQuery) Key added in v0.1.2

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

func (GetDeviceDefinitionByIdsQueryHandler) Handle added in v0.1.2

func (ch GetDeviceDefinitionByIdsQueryHandler) Handle(ctx context.Context, query mediator.Message) (interface{}, error)

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

type GetDeviceDefinitionByMakeModelYearQueryHandler

type GetDeviceDefinitionByMakeModelYearQueryHandler struct {
	DDCache services.DeviceDefinitionCacheService
}

func (GetDeviceDefinitionByMakeModelYearQueryHandler) Handle

type GetDeviceDefinitionWithRelsQuery

type GetDeviceDefinitionWithRelsQuery struct {
	DeviceDefinitionID string `json:"deviceDefinitionId" validate:"required"`
}

func (*GetDeviceDefinitionWithRelsQuery) Key

type GetDeviceDefinitionWithRelsQueryHandler

type GetDeviceDefinitionWithRelsQueryHandler struct {
	Repository repositories.DeviceDefinitionRepository
}

func (GetDeviceDefinitionWithRelsQueryHandler) Handle

func (ch GetDeviceDefinitionWithRelsQueryHandler) Handle(ctx context.Context, query mediator.Message) (interface{}, error)

type GetDeviceDefinitionWithRelsQueryResult

type GetDeviceDefinitionWithRelsQueryResult struct {
	ID           string          `json:"id"`
	Type         string          `json:"type"`
	Style        string          `json:"style"`
	Vendor       string          `json:"vendor"`
	Region       string          `json:"region"`
	Country      string          `json:"country,omitempty"`
	Capabilities json.RawMessage `json:"capabilities"`
}

type GetDeviceModelYear

type GetDeviceModelYear struct {
	Year               int16  `json:"year"`
	DeviceDefinitionID string `json:"id"`
}

type GetDeviceModels

type GetDeviceModels struct {
	Model string               `json:"model"`
	Years []GetDeviceModelYear `json:"years"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL