Documentation ¶
Index ¶
- type BaseCommandHandler
- type BaseCommandRequest
- type BaseCommandResponse
- type CreateDBCCodeCommandHandler
- type CreateDBCCodeCommandRequest
- type CreateDBCCodeCommandResponse
- type CreateDbcCommandHandler
- type CreateDbcCommandRequest
- type CreateDbcCommandResponse
- type CreateDeviceSettingsCommandHandler
- type CreateDeviceSettingsCommandRequest
- type CreateDeviceSettingsCommandResponse
- type CreatePidCommandHandler
- type CreatePidCommandRequest
- type CreatePidCommandResponse
- type CreateTemplateCommandHandler
- type CreateTemplateCommandRequest
- type CreateTemplateCommandResponse
- type CreateTestSignalCommandHandler
- type CreateTestSignalCommandRequest
- type CreateTestSignalCommandResponse
- type RunTestSignalCommandHandler
- type RunTestSignalCommandRequest
- type RunTestSignalCommandResponse
- type RunTestSignalItemCommandRequest
- type UpdateDBCCodeCommandHandler
- type UpdateDBCCodeCommandRequest
- type UpdateDBCCodeCommandResponse
- type UpdateDbcCommandHandler
- type UpdateDbcCommandRequest
- type UpdateDbcCommandResponse
- type UpdateDeviceSettingsCommandHandler
- type UpdateDeviceSettingsCommandRequest
- type UpdateDeviceSettingsCommandResponse
- type UpdatePidCommandHandler
- type UpdatePidCommandRequest
- type UpdatePidCommandResponse
- type UpdateTemplateCommandHandler
- type UpdateTemplateCommandRequest
- type UpdateTemplateCommandResponse
- type UpdateTestSignalCommandHandler
- type UpdateTestSignalCommandRequest
- type UpdateTestSignalCommandResponse
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 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 CreateDeviceSettingsCommandRequest struct { ID int64 TemplateName string BatteryCriticalLevelVoltage float64 SafetyCutOutVoltage float64 SleepTimerEventDrivenInterval float64 SleepTimerEventDrivenPeriod float64 SleepTimerInactivityAfterSleepInterval float64 SleepTimerInactivityFallbackInterval float64 WakeTriggerVoltageLevel float64 }
type CreateDeviceSettingsCommandResponse ¶ added in v0.4.4
type CreateDeviceSettingsCommandResponse struct {
Name string
}
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 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 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 NewUpdateDbcCommandHandler ¶ added in v0.4.4
func NewUpdateDbcCommandHandler(dbs func() *db.ReaderWriter) UpdateDbcCommandHandler
func (UpdateDbcCommandHandler) Execute ¶ added in v0.4.4
func (h UpdateDbcCommandHandler) Execute(ctx context.Context, req *UpdateDbcCommandRequest) (*UpdateDbcCommandResponse, error)
type UpdateDbcCommandRequest ¶ added in v0.4.4
type UpdateDbcCommandResponse ¶ added in v0.4.4
type UpdateDbcCommandResponse struct {
TemplateName string
}
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 UpdateDeviceSettingsCommandRequest struct { TemplateName string BatteryCriticalLevelVoltage float64 SafetyCutOutVoltage float64 SleepTimerEventDrivenInterval float64 SleepTimerEventDrivenPeriod float64 SleepTimerInactivityAfterSleepInterval float64 SleepTimerInactivityFallbackInterval float64 WakeTriggerVoltageLevel float64 }
type UpdateDeviceSettingsCommandResponse ¶ added in v0.4.4
type UpdateDeviceSettingsCommandResponse struct {
TemplateName string
}
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 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
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.