queries

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompatibilityLevel added in v0.3.8

type CompatibilityLevel string

CompatibilityLevel enum for overall device compatibility

const (
	GoldLevel   CompatibilityLevel = "Gold"
	SilverLevel CompatibilityLevel = "Silver"
	BronzeLevel CompatibilityLevel = "Bronze"
	NoDataLevel CompatibilityLevel = "No Data"
)

func (CompatibilityLevel) String added in v0.3.8

func (r CompatibilityLevel) String() string

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"`
	ExternalIds  null.JSON   `json:"external_ids"`
}

type GetAllDeviceDefinitionGroupQuery added in v0.1.34

type GetAllDeviceDefinitionGroupQuery struct {
}

func (*GetAllDeviceDefinitionGroupQuery) Key added in v0.1.34

type GetAllDeviceDefinitionGroupQueryHandler added in v0.1.34

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

func NewGetAllDeviceDefinitionGroupQueryHandler added in v0.1.34

func NewGetAllDeviceDefinitionGroupQueryHandler(repository repositories.DeviceDefinitionRepository, makeRepository repositories.DeviceMakeRepository) GetAllDeviceDefinitionGroupQueryHandler

func (GetAllDeviceDefinitionGroupQueryHandler) Handle added in v0.1.34

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

type GetAllDeviceDefinitionGroupQueryResult added in v0.1.34

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

type GetAllDeviceDefinitionQuery

type GetAllDeviceDefinitionQuery struct {
}

func (*GetAllDeviceDefinitionQuery) Key

type GetAllDeviceDefinitionQueryHandler

type GetAllDeviceDefinitionQueryHandler struct {
	Repository repositories.DeviceDefinitionRepository
}

func (GetAllDeviceDefinitionQueryHandler) Handle

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

type GetAllDeviceMakeQuery added in v0.1.35

type GetAllDeviceMakeQuery struct {
}

func (*GetAllDeviceMakeQuery) Key added in v0.1.35

type GetAllDeviceMakeQueryHandler added in v0.1.35

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

func NewGetAllDeviceMakeQueryHandler added in v0.1.35

func NewGetAllDeviceMakeQueryHandler(dbs func() *db.ReaderWriter) GetAllDeviceMakeQueryHandler

func (GetAllDeviceMakeQueryHandler) Handle added in v0.1.35

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

type GetAllDeviceTypeQuery added in v0.2.3

type GetAllDeviceTypeQuery struct {
}

func (*GetAllDeviceTypeQuery) Key added in v0.2.3

type GetAllDeviceTypeQueryHandler added in v0.2.3

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

func NewGetAllDeviceTypeQueryHandler added in v0.2.3

func NewGetAllDeviceTypeQueryHandler(dbs func() *db.ReaderWriter) GetAllDeviceTypeQueryHandler

func (GetAllDeviceTypeQueryHandler) Handle added in v0.2.3

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

type GetAllIntegrationFeatureQuery added in v0.3.5

type GetAllIntegrationFeatureQuery struct {
}

func (*GetAllIntegrationFeatureQuery) Key added in v0.3.5

type GetAllIntegrationFeatureQueryHandler added in v0.3.5

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

func NewGetAllIntegrationFeatureQuery added in v0.3.5

func NewGetAllIntegrationFeatureQuery(dbs func() *db.ReaderWriter) GetAllIntegrationFeatureQueryHandler

func (GetAllIntegrationFeatureQueryHandler) Handle added in v0.3.5

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

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 GetCompatibilitiesByMakeQuery added in v0.3.9

type GetCompatibilitiesByMakeQuery struct {
	MakeID        string `json:"makeId" validate:"required"`
	IntegrationID string `json:"integrationId" validate:"required"`
	Region        string `json:"region" validate:"required"`
	Skip          int64  `json:"skip"`
	Take          int64  `json:"take"`
}

func (*GetCompatibilitiesByMakeQuery) Key added in v0.3.9

type GetCompatibilityByDeviceDefinitionQuery added in v0.3.6

type GetCompatibilityByDeviceDefinitionQuery struct {
	DeviceDefinitionID string
}

func (*GetCompatibilityByDeviceDefinitionQuery) Key added in v0.3.6

type GetCompatibilityByDeviceDefinitionQueryHandler added in v0.3.6

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

func NewGetCompatibilityByDeviceDefinitionQueryHandler added in v0.3.6

func NewGetCompatibilityByDeviceDefinitionQueryHandler(dbs func() *db.ReaderWriter) GetCompatibilityByDeviceDefinitionQueryHandler

func (GetCompatibilityByDeviceDefinitionQueryHandler) Handle added in v0.3.6

type GetDeviceCompatibilityQueryHandler added in v0.1.38

type GetDeviceCompatibilityQueryHandler struct {
	Repository repositories.DeviceDefinitionRepository
	DBS        func() *db.ReaderWriter
}

func NewGetDeviceCompatibilityQueryHandler added in v0.1.38

func NewGetDeviceCompatibilityQueryHandler(dbs func() *db.ReaderWriter, repository repositories.DeviceDefinitionRepository) GetDeviceCompatibilityQueryHandler

func (GetDeviceCompatibilityQueryHandler) Handle added in v0.1.38

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

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 GetDeviceDefinitionBySlugQuery added in v0.2.7

type GetDeviceDefinitionBySlugQuery struct {
	// Slug is the model slug
	Slug string `json:"slug"`
	Year int    `json:"year"`
}

func (*GetDeviceDefinitionBySlugQuery) Key added in v0.2.7

type GetDeviceDefinitionBySlugQueryHandler added in v0.2.7

type GetDeviceDefinitionBySlugQueryHandler struct {
	DDCache services.DeviceDefinitionCacheService
}

func NewGetDeviceDefinitionBySlugQueryHandler added in v0.2.7

func NewGetDeviceDefinitionBySlugQueryHandler(cache services.DeviceDefinitionCacheService) GetDeviceDefinitionBySlugQueryHandler

func (GetDeviceDefinitionBySlugQueryHandler) Handle added in v0.2.7

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

type GetDeviceDefinitionBySourceQuery added in v0.1.30

type GetDeviceDefinitionBySourceQuery struct {
	Source string `json:"source" validate:"required"`
}

func (*GetDeviceDefinitionBySourceQuery) Key added in v0.1.30

type GetDeviceDefinitionBySourceQueryHandler added in v0.1.30

type GetDeviceDefinitionBySourceQueryHandler struct {
	DBS func() *db.ReaderWriter
	// contains filtered or unexported fields
}

func NewGetDeviceDefinitionBySourceQueryHandler added in v0.1.30

func NewGetDeviceDefinitionBySourceQueryHandler(dbs func() *db.ReaderWriter, log *zerolog.Logger) GetDeviceDefinitionBySourceQueryHandler

func (GetDeviceDefinitionBySourceQueryHandler) Handle added in v0.1.30

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

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"`
	Capabilities json.RawMessage `json:"capabilities"`
}

type GetDeviceDefinitionWithoutImageQuery added in v0.1.33

type GetDeviceDefinitionWithoutImageQuery struct {
}

func (*GetDeviceDefinitionWithoutImageQuery) Key added in v0.1.33

type GetDeviceDefinitionWithoutImageQueryHandler added in v0.1.33

type GetDeviceDefinitionWithoutImageQueryHandler struct {
	DBS func() *db.ReaderWriter
	// contains filtered or unexported fields
}

func NewGetDeviceDefinitionWithoutImageQueryHandler added in v0.1.33

func NewGetDeviceDefinitionWithoutImageQueryHandler(dbs func() *db.ReaderWriter, log *zerolog.Logger) GetDeviceDefinitionWithoutImageQueryHandler

func (GetDeviceDefinitionWithoutImageQueryHandler) Handle added in v0.1.33

type GetDeviceMakeByNameQuery added in v0.1.35

type GetDeviceMakeByNameQuery struct {
	Name string `json:"name"`
}

func (*GetDeviceMakeByNameQuery) Key added in v0.1.35

type GetDeviceMakeByNameQueryHandler added in v0.1.35

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

func NewGetDeviceMakeByNameQueryHandler added in v0.1.35

func NewGetDeviceMakeByNameQueryHandler(dbs func() *db.ReaderWriter) GetDeviceMakeByNameQueryHandler

func (GetDeviceMakeByNameQueryHandler) Handle added in v0.1.35

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

type GetDeviceMakeBySlugQuery added in v0.2.7

type GetDeviceMakeBySlugQuery struct {
	Slug string `json:"slug"`
}

func (*GetDeviceMakeBySlugQuery) Key added in v0.2.7

type GetDeviceMakeBySlugQueryHandler added in v0.2.7

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

func NewGetDeviceMakeBySlugQueryHandler added in v0.2.7

func NewGetDeviceMakeBySlugQueryHandler(dbs func() *db.ReaderWriter) GetDeviceMakeBySlugQueryHandler

func (GetDeviceMakeBySlugQueryHandler) Handle added in v0.2.7

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

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"`
}

type GetDeviceStyleByDeviceDefinitionIDQuery added in v0.1.31

type GetDeviceStyleByDeviceDefinitionIDQuery struct {
	DeviceDefinitionID string `json:"device_definition_id"`
}

func (*GetDeviceStyleByDeviceDefinitionIDQuery) Key added in v0.1.31

type GetDeviceStyleByDeviceDefinitionIDQueryHandler added in v0.1.31

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

func NewGetDeviceStyleByDeviceDefinitionIDQueryHandler added in v0.1.31

func NewGetDeviceStyleByDeviceDefinitionIDQueryHandler(dbs func() *db.ReaderWriter) GetDeviceStyleByDeviceDefinitionIDQueryHandler

func (GetDeviceStyleByDeviceDefinitionIDQueryHandler) Handle added in v0.1.31

type GetDeviceStyleByExternalIDQuery added in v0.1.27

type GetDeviceStyleByExternalIDQuery struct {
	ExternalDeviceID string `json:"external_device_id"`
}

func (*GetDeviceStyleByExternalIDQuery) Key added in v0.1.27

type GetDeviceStyleByExternalIDQueryHandler added in v0.1.27

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

func NewGetDeviceStyleByExternalIDQueryHandler added in v0.1.27

func NewGetDeviceStyleByExternalIDQueryHandler(dbs func() *db.ReaderWriter) GetDeviceStyleByExternalIDQueryHandler

func (GetDeviceStyleByExternalIDQueryHandler) Handle added in v0.1.27

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

type GetDeviceStyleByFilterQuery added in v0.1.40

type GetDeviceStyleByFilterQuery struct {
	DeviceDefinitionID string `json:"device_definition_id"`
	Name               string `json:"name"`
	SubModel           string `json:"sub_model"`
}

func (*GetDeviceStyleByFilterQuery) Key added in v0.1.40

type GetDeviceStyleByFilterQueryHandler added in v0.1.40

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

func NewGetDeviceStyleByFilterQueryHandler added in v0.1.40

func NewGetDeviceStyleByFilterQueryHandler(dbs func() *db.ReaderWriter) GetDeviceStyleByFilterQueryHandler

func (GetDeviceStyleByFilterQueryHandler) Handle added in v0.1.40

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

type GetDeviceStyleByIDQuery added in v0.1.27

type GetDeviceStyleByIDQuery struct {
	DeviceStyleID string `json:"device_style_id"`
}

func (*GetDeviceStyleByIDQuery) Key added in v0.1.27

type GetDeviceStyleByIDQueryHandler added in v0.1.27

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

func NewGetDeviceStyleByIDQueryHandler added in v0.1.27

func NewGetDeviceStyleByIDQueryHandler(dbs func() *db.ReaderWriter) GetDeviceStyleByIDQueryHandler

func (GetDeviceStyleByIDQueryHandler) Handle added in v0.1.27

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

type GetDeviceTypeByIDQuery added in v0.2.0

type GetDeviceTypeByIDQuery struct {
	DeviceTypeID string `json:"device_type_id"`
}

func (*GetDeviceTypeByIDQuery) Key added in v0.2.0

type GetDeviceTypeByIDQueryHandler added in v0.2.0

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

func NewGetDeviceTypeByIDQueryHandler added in v0.2.0

func NewGetDeviceTypeByIDQueryHandler(dbs func() *db.ReaderWriter) GetDeviceTypeByIDQueryHandler

func (GetDeviceTypeByIDQueryHandler) Handle added in v0.2.0

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

type GetIntegrationByIDQuery added in v0.1.26

type GetIntegrationByIDQuery struct {
	IntegrationID string `json:"integration_id"`
}

func (*GetIntegrationByIDQuery) Key added in v0.1.26

type GetIntegrationByIDQueryHandler added in v0.1.26

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

func NewGetIntegrationByIDQueryHandler added in v0.1.26

func NewGetIntegrationByIDQueryHandler(dbs func() *db.ReaderWriter) GetIntegrationByIDQueryHandler

func (GetIntegrationByIDQueryHandler) Handle added in v0.1.26

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

type GetIntegrationFeatureByIDQuery added in v0.3.5

type GetIntegrationFeatureByIDQuery struct {
	ID string `json:"id"`
}

func (*GetIntegrationFeatureByIDQuery) Key added in v0.3.5

type GetIntegrationFeatureByIDQueryHandler added in v0.3.5

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

func NewGetIntegrationFeatureByIDQueryHandler added in v0.3.5

func NewGetIntegrationFeatureByIDQueryHandler(dbs func() *db.ReaderWriter) GetIntegrationFeatureByIDQueryHandler

func (GetIntegrationFeatureByIDQueryHandler) Handle added in v0.3.5

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

type GetIntegrationOptionsQuery added in v0.3.8

type GetIntegrationOptionsQuery struct {
	MakeID string
}

func (*GetIntegrationOptionsQuery) Key added in v0.3.8

type GetIntegrationOptionsQueryHandler added in v0.3.8

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

func NewGetIntegrationOptionsQueryHandler added in v0.3.8

func NewGetIntegrationOptionsQueryHandler(dbs func() *db.ReaderWriter) GetIntegrationOptionsQueryHandler

func (GetIntegrationOptionsQueryHandler) Handle added in v0.3.8

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

type GetRecallsByMakeQuery added in v0.2.4

type GetRecallsByMakeQuery struct {
	MakeID string `json:"make_id"`
}

func (*GetRecallsByMakeQuery) Key added in v0.2.4

type GetRecallsByMakeQueryHandler added in v0.2.4

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

func NewGetRecallsByMakeQueryHandler added in v0.2.4

func NewGetRecallsByMakeQueryHandler(dbs func() *db.ReaderWriter) GetRecallsByMakeQueryHandler

func (GetRecallsByMakeQueryHandler) Handle added in v0.2.4

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

type GetRecallsByModelQuery added in v0.2.4

type GetRecallsByModelQuery struct {
	DeviceDefinitionID string `json:"deviceDefinitionID"`
}

func (*GetRecallsByModelQuery) Key added in v0.2.4

type GetRecallsByModelQueryHandler added in v0.2.4

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

func NewGetRecallsByModelQueryHandler added in v0.2.4

func NewGetRecallsByModelQueryHandler(dbs func() *db.ReaderWriter) GetRecallsByModelQueryHandler

func (GetRecallsByModelQueryHandler) Handle added in v0.2.4

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

type GetReviewsByDeviceDefinitionIDQuery added in v0.4.0

type GetReviewsByDeviceDefinitionIDQuery struct {
	DeviceDefinitionID string `json:"device_definition_id"`
}

func (*GetReviewsByDeviceDefinitionIDQuery) Key added in v0.4.0

type GetReviewsByDeviceDefinitionIDQueryHandler added in v0.4.0

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

func NewGetReviewsByDeviceDefinitionIDQueryHandler added in v0.4.0

func NewGetReviewsByDeviceDefinitionIDQueryHandler(dbs func() *db.ReaderWriter) GetReviewsByDeviceDefinitionIDQueryHandler

func (GetReviewsByDeviceDefinitionIDQueryHandler) Handle added in v0.4.0

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

type GetReviewsByIDQuery added in v0.4.0

type GetReviewsByIDQuery struct {
	ReviewID string `json:"review_id"`
}

func (*GetReviewsByIDQuery) Key added in v0.4.0

func (*GetReviewsByIDQuery) Key() string

type GetReviewsByIDQueryHandler added in v0.4.0

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

func NewGetReviewsByIDQueryHandler added in v0.4.0

func NewGetReviewsByIDQueryHandler(dbs func() *db.ReaderWriter) GetReviewsByIDQueryHandler

func (GetReviewsByIDQueryHandler) Handle added in v0.4.0

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

type GetReviewsDynamicFilterQuery added in v0.4.3

type GetReviewsDynamicFilterQuery struct {
	MakeID             string `json:"make_id"`
	DeviceDefinitionID string `json:"device_definition_id"`
	Year               int    `json:"year"`
	Model              string `json:"model"`
	Approved           bool   `json:"approved"`
	PageIndex          int    `json:"page_index"`
	PageSize           int    `json:"page_size"`
}

func (*GetReviewsDynamicFilterQuery) Key added in v0.4.3

type GetReviewsDynamicFilterQueryHandler added in v0.4.3

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

func NewGetReviewsDynamicFilterQueryHandler added in v0.4.3

func NewGetReviewsDynamicFilterQueryHandler(dbs func() *db.ReaderWriter) GetReviewsDynamicFilterQueryHandler

func (GetReviewsDynamicFilterQueryHandler) Handle added in v0.4.3

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

type IntegrationOption added in v0.3.8

type IntegrationOption struct {
	IntegrationID     string `boil:"integration_id"`
	IntegrationVendor string `boil:"vendor"`
	Region            string `boil:"region"`
}

Jump to

Keyboard shortcuts

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