queries

package
v0.10.26 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllParentTemplates added in v0.10.14

func GetAllParentTemplates(ctx context.Context, dbs func() *db.ReaderWriter, templateName string) ([]string, *models.Template, error)

GetAllParentTemplates gets all the parent templates for a template, if none returns empty just the current template name

func GetPidsByTemplate added in v0.10.8

func GetPidsByTemplate(ctx context.Context, dbs func() *db.ReaderWriter, request *GetPidsQueryRequest) (models.PidConfigSlice, *models.Template, error)

GetPidsByTemplate gets all pids in a template and their children from inherited parent templates

func ToAnySlice added in v0.10.14

func ToAnySlice(slice []string) []any

Types

type BaseQueryHandler

type BaseQueryHandler struct {
}

func (BaseQueryHandler) Handle

type BaseQueryRequest

type BaseQueryRequest struct {
	Input string
}

type BaseQueryResponse

type BaseQueryResponse struct {
	Input string
}

type DownloadCanBusDumpFileByFileNameQueryHandler added in v0.6.0

type DownloadCanBusDumpFileByFileNameQueryHandler struct {
	// contains filtered or unexported fields
}

func NewDownloadCanBusDumpFileByFileNameQueryHandler added in v0.6.0

func NewDownloadCanBusDumpFileByFileNameQueryHandler(logger *zerolog.Logger, s3Client *s3.Client, settings *config.Settings) DownloadCanBusDumpFileByFileNameQueryHandler

func (DownloadCanBusDumpFileByFileNameQueryHandler) Handle added in v0.6.0

type DownloadCanBusDumpFileByFileNameQueryRequest added in v0.6.0

type DownloadCanBusDumpFileByFileNameQueryRequest struct {
	FileName string
}

type GetAftermarketDeviceTemplateAll added in v0.7.41

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

func NewGetAftermarketDeviceTemplateAll added in v0.7.41

func NewGetAftermarketDeviceTemplateAll(dbs func() *db.ReaderWriter) *GetAftermarketDeviceTemplateAll

func (*GetAftermarketDeviceTemplateAll) Handle added in v0.7.41

type GetAftermarketDeviceTemplateByEthereumAddress added in v0.7.42

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

func NewGetAftermarketDeviceTemplateByEthereumAddress added in v0.7.42

func NewGetAftermarketDeviceTemplateByEthereumAddress(dbs func() *db.ReaderWriter) *GetAftermarketDeviceTemplateByEthereumAddress

func (*GetAftermarketDeviceTemplateByEthereumAddress) Handle added in v0.7.42

type GetCanBusDumpFileByEthAddressQueryHandler added in v0.6.0

type GetCanBusDumpFileByEthAddressQueryHandler struct {
	// contains filtered or unexported fields
}

func NewGetCanBusDumpFileByEthAddressQueryHandler added in v0.6.0

func NewGetCanBusDumpFileByEthAddressQueryHandler(logger *zerolog.Logger, s3Client *s3.Client, settings *config.Settings) GetCanBusDumpFileByEthAddressQueryHandler

func (GetCanBusDumpFileByEthAddressQueryHandler) Handle added in v0.6.0

type GetCanBusDumpFileByEthAddressQueryRequest added in v0.6.0

type GetCanBusDumpFileByEthAddressQueryRequest struct {
	EthAddress string
}

type GetDBCCodeAllQueryHandler

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

func NewGetDBCCodeAllQueryHandler

func NewGetDBCCodeAllQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetDBCCodeAllQueryHandler

func (GetDBCCodeAllQueryHandler) Handle

type GetDBCCodeAllQueryRequest

type GetDBCCodeAllQueryRequest struct {
}

type GetDBCCodeByIDQueryHandler added in v0.1.1

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

func NewGetDBCCodeByIDQueryHandler added in v0.1.1

func NewGetDBCCodeByIDQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetDBCCodeByIDQueryHandler

func (GetDBCCodeByIDQueryHandler) Handle added in v0.1.1

type GetDBCCodeByIDQueryRequest added in v0.1.1

type GetDBCCodeByIDQueryRequest struct {
	ID string
}

type GetDbcAllQueryHandler added in v0.4.4

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

func NewGetDbcAllQueryHandler added in v0.4.4

func NewGetDbcAllQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetDbcAllQueryHandler

func (GetDbcAllQueryHandler) Handle added in v0.4.4

type GetDbcAllQueryRequest added in v0.4.4

type GetDbcAllQueryRequest struct {
	TemplateName string
}

type GetDbcByTemplateNameQueryHandler added in v0.4.4

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

func NewGetDbcByTemplateNameQueryHandler added in v0.4.4

func NewGetDbcByTemplateNameQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetDbcByTemplateNameQueryHandler

func (GetDbcByTemplateNameQueryHandler) Handle added in v0.4.4

type GetDbcByTemplateNameQueryRequest added in v0.4.4

type GetDbcByTemplateNameQueryRequest struct {
	TemplateName string
}

type GetDeviceSettingsAllQueryHandler added in v0.4.4

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

func NewGetDeviceSettingsAllQueryHandler added in v0.4.4

func NewGetDeviceSettingsAllQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetDeviceSettingsAllQueryHandler

func (GetDeviceSettingsAllQueryHandler) Handle added in v0.4.4

type GetDeviceSettingsAllQueryRequest added in v0.4.4

type GetDeviceSettingsAllQueryRequest struct {
	Name string
}

type GetDeviceSettingsByNameQueryHandler added in v0.6.6

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

func NewGetDeviceSettingsByNameQueryHandler added in v0.6.6

func NewGetDeviceSettingsByNameQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetDeviceSettingsByNameQueryHandler

func (GetDeviceSettingsByNameQueryHandler) Handle added in v0.6.6

type GetDeviceSettingsByNameQueryRequest added in v0.6.6

type GetDeviceSettingsByNameQueryRequest struct {
	Name string
}

type GetDeviceTemplateStatusByEthAddressQuery added in v0.10.5

type GetDeviceTemplateStatusByEthAddressQuery struct {
	EthAddress common.Address
}

type GetDeviceTemplateStatusByEthAddressQueryHandler added in v0.10.5

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

func NewGetDeviceTemplateStatusByEthAddressQuery added in v0.10.5

func NewGetDeviceTemplateStatusByEthAddressQuery(dbs func() *db.ReaderWriter) *GetDeviceTemplateStatusByEthAddressQueryHandler

func (*GetDeviceTemplateStatusByEthAddressQueryHandler) Handle added in v0.10.5

type GetJobByEthereumAddressQueryHandler added in v0.6.2

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

func NewGetJobByEthereumAddressQueryHandler added in v0.6.2

func NewGetJobByEthereumAddressQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetJobByEthereumAddressQueryHandler

func (GetJobByEthereumAddressQueryHandler) Handle added in v0.6.2

type GetJobByyEthereumAddressQueryRequest added in v0.6.2

type GetJobByyEthereumAddressQueryRequest struct {
	EtherumAddress string
}

type GetPidByIDQueryHandler added in v0.4.4

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

func NewGetPidByIDQueryHandler added in v0.4.4

func NewGetPidByIDQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetPidByIDQueryHandler

func (GetPidByIDQueryHandler) Handle added in v0.4.4

type GetPidByIDQueryRequest added in v0.4.4

type GetPidByIDQueryRequest struct {
	ID int64
}

type GetPidsQueryRequest added in v0.10.8

type GetPidsQueryRequest struct {
	TemplateName string
}

type GetTemplateByNameQueryHandler added in v0.4.4

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

func NewGetTemplateByNameQueryHandler added in v0.4.4

func NewGetTemplateByNameQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetTemplateByNameQueryHandler

func (GetTemplateByNameQueryHandler) Handle added in v0.4.4

type GetTemplateByNameQueryRequest added in v0.4.4

type GetTemplateByNameQueryRequest struct {
	Name string
}

type GetTemplateDeviceDefinitionAllQuery added in v0.7.4

type GetTemplateDeviceDefinitionAllQuery struct {
}

type GetTemplateDeviceDefinitionAllQueryHandler added in v0.7.4

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

func NewGetTemplateDeviceDefinitionAllQueryHandler added in v0.7.4

func NewGetTemplateDeviceDefinitionAllQueryHandler(dbs func() *db.ReaderWriter) *GetTemplateDeviceDefinitionAllQueryHandler

func (*GetTemplateDeviceDefinitionAllQueryHandler) Handle added in v0.7.4

type GetTemplateDeviceDefinitionByIDQuery added in v0.7.4

type GetTemplateDeviceDefinitionByIDQuery struct {
	ID int64
}

type GetTemplateDeviceDefinitionByIDQueryHandler added in v0.7.4

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

func NewGetTemplateDeviceDefinitionByIDQueryHandler added in v0.7.4

func NewGetTemplateDeviceDefinitionByIDQueryHandler(dbs func() *db.ReaderWriter) *GetTemplateDeviceDefinitionByIDQueryHandler

func (*GetTemplateDeviceDefinitionByIDQueryHandler) Handle added in v0.7.4

type GetTemplatesAllQueryHandler added in v0.4.4

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

func NewGetTemplatesAllQueryHandler added in v0.4.4

func NewGetTemplatesAllQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetTemplatesAllQueryHandler

func (GetTemplatesAllQueryHandler) Handle added in v0.4.4

type GetTemplatesAllQueryRequest added in v0.4.4

type GetTemplatesAllQueryRequest struct {
	Protocol   *string
	Powertrain *string
}

type GetTestSignalAllQueryHandler

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

func NewGetTestSignalAllQueryHandler

func NewGetTestSignalAllQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetTestSignalAllQueryHandler

type GetTestSignalAllQueryRequest

type GetTestSignalAllQueryRequest struct {
	Input string
}

type GetTestSignalByIDQueryHandler added in v0.1.1

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

func NewGetTestSignalByIDQueryHandler added in v0.1.1

func NewGetTestSignalByIDQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetTestSignalByIDQueryHandler

func (GetTestSignalByIDQueryHandler) Handle added in v0.1.1

type GetTestSignalByIDQueryRequest added in v0.1.1

type GetTestSignalByIDQueryRequest struct {
	ID string
}

type GetTestSignalFilterQueryHandler added in v0.1.1

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

func NewGetTestSignalFilterQueryHandler added in v0.1.1

func NewGetTestSignalFilterQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetTestSignalFilterQueryHandler

func (GetTestSignalFilterQueryHandler) Handle added in v0.1.1

type GetTestSignalFilterQueryRequest added in v0.1.1

type GetTestSignalFilterQueryRequest struct {
	DeviceDefinitionID string
	DBCCodeID          string
	UserDeviceID       string
}

type GetVehicleTemplateByIDQueryHandler added in v0.7.4

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

func NewGetVehicleTemplateByIDQueryHandler added in v0.7.4

func NewGetVehicleTemplateByIDQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetVehicleTemplateByIDQueryHandler

func (GetVehicleTemplateByIDQueryHandler) Handle added in v0.7.4

type GetVehicleTemplateByIDQueryRequest added in v0.7.4

type GetVehicleTemplateByIDQueryRequest struct {
	ID int64
}

type GetVehicleTemplatesFilteredQueryHandler added in v0.7.4

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

func NewGetVehicleTemplatesFilteredQueryHandler added in v0.7.4

func NewGetVehicleTemplatesFilteredQueryHandler(dbs func() *db.ReaderWriter, logger *zerolog.Logger) GetVehicleTemplatesFilteredQueryHandler

func (GetVehicleTemplatesFilteredQueryHandler) Handle added in v0.7.4

type GetVehicleTemplatesFilteredQueryRequest added in v0.7.4

type GetVehicleTemplatesFilteredQueryRequest struct {
	MakeSlug  *string
	YearStart *int32
	YearEnd   *int32
	Template  *string
}

Jump to

Keyboard shortcuts

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