Documentation ¶
Index ¶
- type BaseCommandHandler
- type BaseCommandRequest
- type BaseCommandResponse
- type CreateAftermarketDeviceTemplateCommand
- type CreateAftermarketDeviceTemplateCommandHandler
- type CreateDBCCodeCommandHandler
- type CreateDBCCodeCommandRequest
- type CreateDBCCodeCommandResponse
- type CreateDbcCommandHandler
- type CreateDbcCommandRequest
- type CreateDbcCommandResponse
- type CreateDeviceSettingsCommandHandler
- type CreateDeviceSettingsCommandRequest
- type CreateDeviceSettingsCommandResponse
- type CreateJobByEtherumAddressCommandHandler
- type CreateJobCommandRequest
- type CreatePidCommandHandler
- type CreatePidCommandRequest
- type CreatePidCommandResponse
- type CreateTemplateCommandHandler
- type CreateTemplateCommandRequest
- type CreateTemplateCommandResponse
- type CreateTemplateDeviceDefinitionCommand
- type CreateTemplateDeviceDefinitionCommandHandler
- type CreateTestSignalCommandHandler
- type CreateTestSignalCommandRequest
- type CreateTestSignalCommandResponse
- type CreateVehicleTemplateCommandHandler
- type CreateVehicleTemplateCommandRequest
- type DeleteAftermarketDeviceTemplateCommand
- type DeleteAftermarketDeviceTemplateCommandHandler
- type DeleteJobByEtherumAddressCommandHandler
- type DeleteJobCommandRequest
- type DeleteJobCommandResponse
- type DeletePidCommandHandler
- type DeletePidCommandRequest
- type DeleteTemplateDeviceDefinitionCommand
- type DeleteTemplateDeviceDefinitionCommandHandler
- type RunTestSignalCommandHandler
- type RunTestSignalCommandRequest
- type RunTestSignalCommandResponse
- type RunTestSignalItemCommandRequest
- type UpdateDBCCodeCommandHandler
- type UpdateDBCCodeCommandRequest
- type UpdateDBCCodeCommandResponse
- type UpdateDbcCommandHandler
- type UpdateDeviceSettingsCommandHandler
- type UpdateDeviceSettingsCommandRequest
- type UpdateDeviceSettingsCommandResponse
- type UpdateEnableStatusPidCommandHandler
- type UpdateEnableStatusPidCommandRequest
- type UpdateJobStatusByEtherumAddressCommandHandler
- type UpdateJobStatusCommandRequest
- type UpdateJobStatusCommandResponse
- type UpdatePidCommandHandler
- type UpdatePidCommandRequest
- type UpdatePidCommandResponse
- type UpdateTemplateCommandHandler
- type UpdateTemplateCommandRequest
- type UpdateTemplateCommandResponse
- type UpdateTemplateDeviceDefinitionCommand
- type UpdateTemplateDeviceDefinitionCommandHandler
- type UpdateTestSignalCommandHandler
- type UpdateTestSignalCommandRequest
- type UpdateTestSignalCommandResponse
- type UpdateVehicleTemplateCommandHandler
- type UpdateVehicleTemplateCommandRequest
- type UpsertDbcCommandRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCommandHandler ¶
type BaseCommandHandler struct { }
func (BaseCommandHandler) Execute ¶
func (h BaseCommandHandler) Execute(_ context.Context, command *BaseCommandRequest) (*BaseCommandResponse, error)
type BaseCommandRequest ¶
type BaseCommandRequest struct {
Input string
}
type BaseCommandResponse ¶
type BaseCommandResponse struct {
Result bool
}
type CreateAftermarketDeviceTemplateCommand ¶ added in v0.7.41
type CreateAftermarketDeviceTemplateCommandHandler ¶ added in v0.7.41
type CreateAftermarketDeviceTemplateCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateAftermarketDeviceTemplateCommandHandler ¶ added in v0.7.41
func NewCreateAftermarketDeviceTemplateCommandHandler(dbs func() *db.ReaderWriter) *CreateAftermarketDeviceTemplateCommandHandler
func (*CreateAftermarketDeviceTemplateCommandHandler) Execute ¶ added in v0.7.41
func (h *CreateAftermarketDeviceTemplateCommandHandler) Execute(ctx context.Context, cmd CreateAftermarketDeviceTemplateCommand) error
type CreateDBCCodeCommandHandler ¶
type CreateDBCCodeCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateDBCCodeCommandHandler ¶
func NewCreateDBCCodeCommandHandler(dbs func() *db.ReaderWriter) CreateDBCCodeCommandHandler
func (CreateDBCCodeCommandHandler) Execute ¶
func (h CreateDBCCodeCommandHandler) Execute(ctx context.Context, command *CreateDBCCodeCommandRequest) (*CreateDBCCodeCommandResponse, error)
type CreateDbcCommandHandler ¶ added in v0.4.4
type CreateDbcCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateDbcCommandHandler ¶ added in v0.4.4
func NewCreateDbcCommandHandler(dbs func() *db.ReaderWriter) CreateDbcCommandHandler
func (CreateDbcCommandHandler) Execute ¶ added in v0.4.4
func (h CreateDbcCommandHandler) Execute(ctx context.Context, req *CreateDbcCommandRequest) (*CreateDbcCommandResponse, error)
type CreateDbcCommandRequest ¶ added in v0.4.4
type CreateDbcCommandResponse ¶ added in v0.4.4
type CreateDbcCommandResponse struct {
Name string
}
type CreateDeviceSettingsCommandHandler ¶ added in v0.4.4
type CreateDeviceSettingsCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateDeviceSettingsCommandHandler ¶ added in v0.4.4
func NewCreateDeviceSettingsCommandHandler(dbs func() *db.ReaderWriter) CreateDeviceSettingsCommandHandler
func (CreateDeviceSettingsCommandHandler) Execute ¶ added in v0.4.4
func (h CreateDeviceSettingsCommandHandler) Execute(ctx context.Context, req *CreateDeviceSettingsCommandRequest) (*CreateDeviceSettingsCommandResponse, error)
type CreateDeviceSettingsCommandRequest ¶ added in v0.4.4
type CreateDeviceSettingsCommandResponse ¶ added in v0.4.4
type CreateDeviceSettingsCommandResponse struct {
Name string
}
type CreateJobByEtherumAddressCommandHandler ¶ added in v0.6.2
type CreateJobByEtherumAddressCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateJobByEtherumAddressCommandHandler ¶ added in v0.6.2
func NewCreateJobByEtherumAddressCommandHandler(dbs func() *db.ReaderWriter) CreateJobByEtherumAddressCommandHandler
func (CreateJobByEtherumAddressCommandHandler) Execute ¶ added in v0.6.2
func (h CreateJobByEtherumAddressCommandHandler) Execute(ctx context.Context, command *CreateJobCommandRequest) (*pgrpc.GetJobsByEtherumAddressItemResponse, error)
type CreateJobCommandRequest ¶ added in v0.6.2
type CreatePidCommandHandler ¶ added in v0.4.4
type CreatePidCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreatePidCommandHandler ¶ added in v0.4.4
func NewCreatePidCommandHandler(dbs func() *db.ReaderWriter) CreatePidCommandHandler
func (CreatePidCommandHandler) Execute ¶ added in v0.4.4
func (h CreatePidCommandHandler) Execute(ctx context.Context, req *CreatePidCommandRequest) (*CreatePidCommandResponse, error)
type CreatePidCommandRequest ¶ added in v0.4.4
type CreatePidCommandResponse ¶ added in v0.4.4
type CreatePidCommandResponse struct {
ID int64
}
type CreateTemplateCommandHandler ¶ added in v0.4.4
type CreateTemplateCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateTemplateCommandHandler ¶ added in v0.4.4
func NewCreateTemplateCommandHandler(dbs func() *db.ReaderWriter) CreateTemplateCommandHandler
func (CreateTemplateCommandHandler) Execute ¶ added in v0.4.4
func (h CreateTemplateCommandHandler) Execute(ctx context.Context, req *CreateTemplateCommandRequest) (*CreateTemplateCommandResponse, error)
type CreateTemplateCommandRequest ¶ added in v0.4.4
type CreateTemplateCommandResponse ¶ added in v0.4.4
type CreateTemplateCommandResponse struct {
Name string
}
type CreateTemplateDeviceDefinitionCommand ¶ added in v0.7.4
type CreateTemplateDeviceDefinitionCommandHandler ¶ added in v0.7.4
type CreateTemplateDeviceDefinitionCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateTemplateDeviceDefinitionCommandHandler ¶ added in v0.7.4
func NewCreateTemplateDeviceDefinitionCommandHandler(dbs func() *db.ReaderWriter) *CreateTemplateDeviceDefinitionCommandHandler
func (*CreateTemplateDeviceDefinitionCommandHandler) Execute ¶ added in v0.7.4
func (h *CreateTemplateDeviceDefinitionCommandHandler) Execute(ctx context.Context, cmd CreateTemplateDeviceDefinitionCommand) (*int64, error)
type CreateTestSignalCommandHandler ¶
type CreateTestSignalCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateTestSignalCommandHandler ¶
func NewCreateTestSignalCommandHandler(dbs func() *db.ReaderWriter) CreateTestSignalCommandHandler
func (CreateTestSignalCommandHandler) Execute ¶
func (h CreateTestSignalCommandHandler) Execute(ctx context.Context, command *CreateTestSignalCommandRequest) (*CreateTestSignalCommandResponse, error)
type CreateTestSignalCommandResponse ¶
type CreateTestSignalCommandResponse struct {
ID string
}
type CreateVehicleTemplateCommandHandler ¶ added in v0.7.4
type CreateVehicleTemplateCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewCreateVehicleTemplateCommandHandler ¶ added in v0.7.4
func NewCreateVehicleTemplateCommandHandler(dbs func() *db.ReaderWriter) CreateVehicleTemplateCommandHandler
func (CreateVehicleTemplateCommandHandler) Execute ¶ added in v0.7.4
func (h CreateVehicleTemplateCommandHandler) Execute(ctx context.Context, req *CreateVehicleTemplateCommandRequest) (*int, error)
type CreateVehicleTemplateCommandRequest ¶ added in v0.7.4
type DeleteAftermarketDeviceTemplateCommand ¶ added in v0.7.41
type DeleteAftermarketDeviceTemplateCommandHandler ¶ added in v0.7.41
type DeleteAftermarketDeviceTemplateCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewDeleteAftermarketDeviceTemplateCommandHandler ¶ added in v0.7.41
func NewDeleteAftermarketDeviceTemplateCommandHandler(dbs func() *db.ReaderWriter) *DeleteAftermarketDeviceTemplateCommandHandler
func (*DeleteAftermarketDeviceTemplateCommandHandler) Execute ¶ added in v0.7.41
func (h *DeleteAftermarketDeviceTemplateCommandHandler) Execute(ctx context.Context, cmd DeleteAftermarketDeviceTemplateCommand) error
type DeleteJobByEtherumAddressCommandHandler ¶ added in v0.6.2
type DeleteJobByEtherumAddressCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewDeleteJobByEtherumAddressCommandHandler ¶ added in v0.6.2
func NewDeleteJobByEtherumAddressCommandHandler(dbs func() *db.ReaderWriter) DeleteJobByEtherumAddressCommandHandler
func (DeleteJobByEtherumAddressCommandHandler) Execute ¶ added in v0.6.2
func (h DeleteJobByEtherumAddressCommandHandler) Execute(ctx context.Context, command *DeleteJobCommandRequest) (*DeleteJobCommandResponse, error)
type DeleteJobCommandRequest ¶ added in v0.6.2
type DeleteJobCommandRequest struct {
ID string
}
type DeleteJobCommandResponse ¶ added in v0.6.2
type DeleteJobCommandResponse struct {
Status bool
}
type DeletePidCommandHandler ¶ added in v0.4.8
type DeletePidCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewDeletePidCommandHandler ¶ added in v0.4.8
func NewDeletePidCommandHandler(dbs func() *db.ReaderWriter) DeletePidCommandHandler
func (DeletePidCommandHandler) Execute ¶ added in v0.4.8
func (h DeletePidCommandHandler) Execute(ctx context.Context, req *DeletePidCommandRequest) error
type DeletePidCommandRequest ¶ added in v0.4.8
type DeleteTemplateDeviceDefinitionCommand ¶ added in v0.7.4
type DeleteTemplateDeviceDefinitionCommand struct {
ID int64
}
type DeleteTemplateDeviceDefinitionCommandHandler ¶ added in v0.7.4
type DeleteTemplateDeviceDefinitionCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewDeleteTemplateDeviceDefinitionCommandHandler ¶ added in v0.7.4
func NewDeleteTemplateDeviceDefinitionCommandHandler(dbs func() *db.ReaderWriter) *DeleteTemplateDeviceDefinitionCommandHandler
func (*DeleteTemplateDeviceDefinitionCommandHandler) Execute ¶ added in v0.7.4
func (h *DeleteTemplateDeviceDefinitionCommandHandler) Execute(ctx context.Context, cmd DeleteTemplateDeviceDefinitionCommand) (*emptypb.Empty, error)
type RunTestSignalCommandHandler ¶
type RunTestSignalCommandHandler interface {
Execute(ctx context.Context, command *RunTestSignalCommandRequest) error
}
func NewRunTestSignalCommandHandler ¶
func NewRunTestSignalCommandHandler(dbs func() *db.ReaderWriter, logger zerolog.Logger, userDeviceService services.UserDeviceService) RunTestSignalCommandHandler
type RunTestSignalCommandRequest ¶
type RunTestSignalCommandRequest struct { AutoPIUnitID string Time time.Time Signals map[string]RunTestSignalItemCommandRequest }
type RunTestSignalCommandResponse ¶
type RunTestSignalCommandResponse struct { }
type RunTestSignalItemCommandRequest ¶ added in v0.1.4
type UpdateDBCCodeCommandHandler ¶
type UpdateDBCCodeCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateDBCCodeCommandHandler ¶
func NewUpdateDBCCodeCommandHandler(dbs func() *db.ReaderWriter) UpdateDBCCodeCommandHandler
func (UpdateDBCCodeCommandHandler) Execute ¶
func (h UpdateDBCCodeCommandHandler) Execute(ctx context.Context, command *UpdateDBCCodeCommandRequest) (*UpdateDBCCodeCommandResponse, error)
type UpdateDbcCommandHandler ¶ added in v0.4.4
type UpdateDbcCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpsertDbcCommandHandler ¶ added in v0.7.4
func NewUpsertDbcCommandHandler(dbs func() *db.ReaderWriter) UpdateDbcCommandHandler
func (UpdateDbcCommandHandler) Execute ¶ added in v0.4.4
func (h UpdateDbcCommandHandler) Execute(ctx context.Context, req *UpsertDbcCommandRequest) (*emptypb.Empty, error)
type UpdateDeviceSettingsCommandHandler ¶ added in v0.4.4
type UpdateDeviceSettingsCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateDeviceSettingsCommandHandler ¶ added in v0.4.4
func NewUpdateDeviceSettingsCommandHandler(dbs func() *db.ReaderWriter) UpdateDeviceSettingsCommandHandler
func (UpdateDeviceSettingsCommandHandler) Execute ¶ added in v0.4.4
func (h UpdateDeviceSettingsCommandHandler) Execute(ctx context.Context, req *UpdateDeviceSettingsCommandRequest) (*UpdateDeviceSettingsCommandResponse, error)
type UpdateDeviceSettingsCommandRequest ¶ added in v0.4.4
type UpdateDeviceSettingsCommandResponse ¶ added in v0.4.4
type UpdateDeviceSettingsCommandResponse struct {
Name string
}
type UpdateEnableStatusPidCommandHandler ¶ added in v0.8.6
type UpdateEnableStatusPidCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateEnableStatusPidCommandHandler ¶ added in v0.8.6
func NewUpdateEnableStatusPidCommandHandler(dbs func() *db.ReaderWriter) UpdateEnableStatusPidCommandHandler
func (UpdateEnableStatusPidCommandHandler) Execute ¶ added in v0.8.6
func (h UpdateEnableStatusPidCommandHandler) Execute(ctx context.Context, req *UpdateEnableStatusPidCommandRequest) error
type UpdateEnableStatusPidCommandRequest ¶ added in v0.8.6
type UpdateEnableStatusPidCommandRequest struct {
ID int64
}
type UpdateJobStatusByEtherumAddressCommandHandler ¶ added in v0.6.2
type UpdateJobStatusByEtherumAddressCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateJobStatusByEtherumAddressCommandHandler ¶ added in v0.6.2
func NewUpdateJobStatusByEtherumAddressCommandHandler(dbs func() *db.ReaderWriter) UpdateJobStatusByEtherumAddressCommandHandler
func (UpdateJobStatusByEtherumAddressCommandHandler) Execute ¶ added in v0.6.2
func (h UpdateJobStatusByEtherumAddressCommandHandler) Execute(ctx context.Context, command *UpdateJobStatusCommandRequest) (*UpdateJobStatusCommandResponse, error)
type UpdateJobStatusCommandRequest ¶ added in v0.6.2
type UpdateJobStatusCommandResponse ¶ added in v0.6.2
type UpdateJobStatusCommandResponse struct {
Status bool
}
type UpdatePidCommandHandler ¶ added in v0.4.4
type UpdatePidCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdatePidCommandHandler ¶ added in v0.4.4
func NewUpdatePidCommandHandler(dbs func() *db.ReaderWriter) UpdatePidCommandHandler
func (UpdatePidCommandHandler) Execute ¶ added in v0.4.4
func (h UpdatePidCommandHandler) Execute(ctx context.Context, req *UpdatePidCommandRequest) (*UpdatePidCommandResponse, error)
type UpdatePidCommandRequest ¶ added in v0.4.4
type UpdatePidCommandResponse ¶ added in v0.4.4
type UpdatePidCommandResponse struct {
ID int64
}
type UpdateTemplateCommandHandler ¶ added in v0.4.4
type UpdateTemplateCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateTemplateCommandHandler ¶ added in v0.4.4
func NewUpdateTemplateCommandHandler(dbs func() *db.ReaderWriter) UpdateTemplateCommandHandler
func (UpdateTemplateCommandHandler) Execute ¶ added in v0.4.4
func (h UpdateTemplateCommandHandler) Execute(ctx context.Context, req *UpdateTemplateCommandRequest) (*UpdateTemplateCommandResponse, error)
type UpdateTemplateCommandRequest ¶ added in v0.4.4
type UpdateTemplateCommandResponse ¶ added in v0.4.4
type UpdateTemplateCommandResponse struct {
Name string
}
type UpdateTemplateDeviceDefinitionCommand ¶ added in v0.7.4
type UpdateTemplateDeviceDefinitionCommandHandler ¶ added in v0.7.4
type UpdateTemplateDeviceDefinitionCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateTemplateDeviceDefinitionCommandHandler ¶ added in v0.7.4
func NewUpdateTemplateDeviceDefinitionCommandHandler(dbS func() *db.ReaderWriter) *UpdateTemplateDeviceDefinitionCommandHandler
func (*UpdateTemplateDeviceDefinitionCommandHandler) Execute ¶ added in v0.7.4
func (h *UpdateTemplateDeviceDefinitionCommandHandler) Execute(ctx context.Context, cmd UpdateTemplateDeviceDefinitionCommand) (*emptypb.Empty, error)
type UpdateTestSignalCommandHandler ¶
type UpdateTestSignalCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateTestSignalCommandHandler ¶
func NewUpdateTestSignalCommandHandler(dbs func() *db.ReaderWriter) UpdateTestSignalCommandHandler
func (UpdateTestSignalCommandHandler) Execute ¶
func (h UpdateTestSignalCommandHandler) Execute(ctx context.Context, command *UpdateTestSignalCommandRequest) (*UpdateTestSignalCommandResponse, error)
type UpdateTestSignalCommandResponse ¶
type UpdateTestSignalCommandResponse struct {
ID string
}
type UpdateVehicleTemplateCommandHandler ¶ added in v0.7.4
type UpdateVehicleTemplateCommandHandler struct {
DBS func() *db.ReaderWriter
}
func NewUpdateVehicleTemplateCommandHandler ¶ added in v0.7.4
func NewUpdateVehicleTemplateCommandHandler(dbs func() *db.ReaderWriter) UpdateVehicleTemplateCommandHandler
func (UpdateVehicleTemplateCommandHandler) Execute ¶ added in v0.7.4
func (h UpdateVehicleTemplateCommandHandler) Execute(ctx context.Context, req *UpdateVehicleTemplateCommandRequest) (*emptypb.Empty, error)
type UpdateVehicleTemplateCommandRequest ¶ added in v0.7.4
type UpsertDbcCommandRequest ¶ added in v0.7.4
Source Files ¶
- base.go
- create_aftermarket_device_template.go
- create_dbc_code.go
- create_dbc_file.go
- create_device_settings.go
- create_job_by_etherum_address.go
- create_pid.go
- create_template.go
- create_template_device_definition.go
- create_test_signal.go
- create_vehicle_template.go
- delete_aftermarket_device_template.go
- delete_job_by_etherum_address.go
- delete_pid.go
- delete_template_device_definition.go
- run_test_signal.go
- update_dbc_code.go
- update_dbc_file.go
- update_device_settings.go
- update_enable_status_pid.go
- update_job_status_by_etherum_address.go
- update_pid.go
- update_template.go
- update_template_device_definition.go
- update_test_signal.go
- update_vehicle_template.go
Click to show internal directories.
Click to hide internal directories.