Documentation ¶
Index ¶
- func GetAllParentTemplates(ctx context.Context, dbs func() *db.ReaderWriter, templateName string) ([]string, *models.Template, error)
- func GetPidsByTemplate(ctx context.Context, dbs func() *db.ReaderWriter, request *GetPidsQueryRequest) (models.PidConfigSlice, *models.Template, error)
- func ToAnySlice(slice []string) []any
- type BaseQueryHandler
- type BaseQueryRequest
- type BaseQueryResponse
- type DownloadCanBusDumpFileByFileNameQueryHandler
- type DownloadCanBusDumpFileByFileNameQueryRequest
- type GetAftermarketDeviceTemplateAll
- type GetAftermarketDeviceTemplateByEthereumAddress
- type GetCanBusDumpFileByEthAddressQueryHandler
- type GetCanBusDumpFileByEthAddressQueryRequest
- type GetDBCCodeAllQueryHandler
- type GetDBCCodeAllQueryRequest
- type GetDBCCodeByIDQueryHandler
- type GetDBCCodeByIDQueryRequest
- type GetDbcAllQueryHandler
- type GetDbcAllQueryRequest
- type GetDbcByTemplateNameQueryHandler
- type GetDbcByTemplateNameQueryRequest
- type GetDeviceSettingsAllQueryHandler
- type GetDeviceSettingsAllQueryRequest
- type GetDeviceSettingsByNameQueryHandler
- type GetDeviceSettingsByNameQueryRequest
- type GetDeviceTemplateStatusByEthAddressQuery
- type GetDeviceTemplateStatusByEthAddressQueryHandler
- type GetJobByEthereumAddressQueryHandler
- type GetJobByyEthereumAddressQueryRequest
- type GetPidByIDQueryHandler
- type GetPidByIDQueryRequest
- type GetPidsQueryRequest
- type GetTemplateByNameQueryHandler
- type GetTemplateByNameQueryRequest
- type GetTemplateDeviceDefinitionAllQuery
- type GetTemplateDeviceDefinitionAllQueryHandler
- type GetTemplateDeviceDefinitionByIDQuery
- type GetTemplateDeviceDefinitionByIDQueryHandler
- type GetTemplatesAllQueryHandler
- type GetTemplatesAllQueryRequest
- type GetTestSignalAllQueryHandler
- type GetTestSignalAllQueryRequest
- type GetTestSignalByIDQueryHandler
- type GetTestSignalByIDQueryRequest
- type GetTestSignalFilterQueryHandler
- type GetTestSignalFilterQueryRequest
- type GetVehicleTemplateByIDQueryHandler
- type GetVehicleTemplateByIDQueryRequest
- type GetVehicleTemplatesFilteredQueryHandler
- type GetVehicleTemplatesFilteredQueryRequest
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
Types ¶
type BaseQueryHandler ¶
type BaseQueryHandler struct { }
func (BaseQueryHandler) Handle ¶
func (h BaseQueryHandler) Handle(_ context.Context, _ *BaseQueryRequest) (*BaseQueryResponse, error)
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 (DownloadCanBusDumpFileByFileNameQueryHandler) Handle ¶ added in v0.6.0
func (h DownloadCanBusDumpFileByFileNameQueryHandler) Handle(ctx context.Context, query *DownloadCanBusDumpFileByFileNameQueryRequest) (*pgrpc.DownloadCanBusDumpFileContentResponse, error)
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
func (h *GetAftermarketDeviceTemplateAll) Handle(ctx context.Context) (*grpc.AftermarketDeviceTemplates, error)
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
func (h *GetAftermarketDeviceTemplateByEthereumAddress) Handle(ctx context.Context, ethAddress common.Address) (*grpc.AftermarketDeviceTemplate, error)
type GetCanBusDumpFileByEthAddressQueryHandler ¶ added in v0.6.0
type GetCanBusDumpFileByEthAddressQueryHandler struct {
// contains filtered or unexported fields
}
func NewGetCanBusDumpFileByEthAddressQueryHandler ¶ added in v0.6.0
func (GetCanBusDumpFileByEthAddressQueryHandler) Handle ¶ added in v0.6.0
func (h GetCanBusDumpFileByEthAddressQueryHandler) Handle(ctx context.Context, query *GetCanBusDumpFileByEthAddressQueryRequest) (*pgrpc.GetCanBusDumpFileResponse, error)
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 ¶
func (h GetDBCCodeAllQueryHandler) Handle(ctx context.Context, _ *GetDBCCodeAllQueryRequest) (*pgrpc.GetDBCCodeListResponse, error)
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
func (h GetDBCCodeByIDQueryHandler) Handle(ctx context.Context, query *GetDBCCodeByIDQueryRequest) (*pgrpc.GetDBCCodeResponse, error)
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
func (h GetDbcAllQueryHandler) Handle(ctx context.Context, _ *GetDbcAllQueryRequest) (*grpc.GetDbcListResponse, error)
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
func (h GetDbcByTemplateNameQueryHandler) Handle(ctx context.Context, query *GetDbcByTemplateNameQueryRequest) (*grpc.GetDbcByTemplateNameResponse, error)
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
func (h GetDeviceSettingsAllQueryHandler) Handle(ctx context.Context, _ *GetDeviceSettingsAllQueryRequest) (*grpc.GetDeviceSettingListResponse, error)
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
func (h GetDeviceSettingsByNameQueryHandler) Handle(ctx context.Context, query *GetDeviceSettingsByNameQueryRequest) (*grpc.GetDeviceSettingByNameResponse, error)
type GetDeviceSettingsByNameQueryRequest ¶ added in v0.6.6
type GetDeviceSettingsByNameQueryRequest struct {
Name string
}
type GetDeviceTemplateStatusByEthAddressQuery ¶ added in v0.10.5
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
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
func (h GetJobByEthereumAddressQueryHandler) Handle(ctx context.Context, query *GetJobByyEthereumAddressQueryRequest) (*pgrpc.GetJobsByEtherumAddressResponse, error)
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
func (h GetPidByIDQueryHandler) Handle(ctx context.Context, query *GetPidByIDQueryRequest) (*grpc.GetPidByIDResponse, error)
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
func (h GetTemplateByNameQueryHandler) Handle(ctx context.Context, query *GetTemplateByNameQueryRequest) (*grpc.GetTemplateByNameResponse, error)
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
func (h *GetTemplateDeviceDefinitionAllQueryHandler) Handle(ctx context.Context, _ GetTemplateDeviceDefinitionAllQuery) (*grpc.GetTemplateDeviceDefinitionResponse, error)
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
func (h *GetTemplateDeviceDefinitionByIDQueryHandler) Handle(ctx context.Context, q GetTemplateDeviceDefinitionByIDQuery) (*grpc.TemplateDeviceDefinition, error)
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
func (h GetTemplatesAllQueryHandler) Handle(ctx context.Context, query *GetTemplatesAllQueryRequest) (*grpc.GetTemplateListResponse, error)
type GetTemplatesAllQueryRequest ¶ added in v0.4.4
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
func (GetTestSignalAllQueryHandler) Handle ¶
func (h GetTestSignalAllQueryHandler) Handle(ctx context.Context, _ *GetTestSignalAllQueryRequest) (*pgrpc.GetTestSignalListResponse, error)
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
func (h GetTestSignalByIDQueryHandler) Handle(ctx context.Context, query *GetTestSignalByIDQueryRequest) (*pgrpc.GetTestSignalResponse, error)
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
func (h GetTestSignalFilterQueryHandler) Handle(ctx context.Context, query *GetTestSignalFilterQueryRequest) (*pgrpc.GetTestSignalListResponse, error)
type GetTestSignalFilterQueryRequest ¶ added in v0.1.1
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
func (h GetVehicleTemplateByIDQueryHandler) Handle(ctx context.Context, query *GetVehicleTemplateByIDQueryRequest) (*grpc.VehicleTemplate, error)
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
func (h GetVehicleTemplatesFilteredQueryHandler) Handle(ctx context.Context, query *GetVehicleTemplatesFilteredQueryRequest) (*grpc.GetVehicleTemplatesResponse, error)
Source Files ¶
- base.go
- download_can_bus_dump_files_by_file_name.go
- get_aftermarket_device_template_by_eth_address.go
- get_afternarket_device_templates_all.go
- get_can_bus_dump_files_by_eth_address.go
- get_dbc_code_all.go
- get_dbc_code_by_id.go
- get_dbc_file_all.go
- get_dbc_file_by_template_name.go
- get_device_settings_all.go
- get_device_settings_by_name.go
- get_device_template_status_by_eth_address.go
- get_job_by_ethereum_address.go
- get_pid_config_all.go
- get_pid_config_by_id.go
- get_template_by_name.go
- get_template_device_definition_all.go
- get_template_device_definition_by_id.go
- get_templates_all.go
- get_test_signal_all.go
- get_test_signal_by_id.go
- get_test_signal_filter.go
- get_vehicle_template_by_id.go
- get_vehicle_templates_filtered.go
Click to show internal directories.
Click to hide internal directories.