Documentation ¶
Index ¶
- type BaseCommandHandler
- type BaseCommandRequest
- type BaseCommandResponse
- type CreateDBCCodeCommandHandler
- type CreateDBCCodeCommandRequest
- type CreateDBCCodeCommandResponse
- type CreateTestSignalCommandHandler
- type CreateTestSignalCommandRequest
- type CreateTestSignalCommandResponse
- type RunTestSignalCommandHandler
- type RunTestSignalCommandRequest
- type RunTestSignalCommandResponse
- type RunTestSignalItemCommandRequest
- type UpdateDBCCodeCommandHandler
- type UpdateDBCCodeCommandRequest
- type UpdateDBCCodeCommandResponse
- 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 {
DBS func() *db.ReaderWriter
}
func NewBaseCommandHandler ¶
func NewBaseCommandHandler(dbs func() *db.ReaderWriter) BaseCommandHandler
func (BaseCommandHandler) Execute ¶
func (h BaseCommandHandler) Execute(ctx 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 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 struct { DBS func() *db.ReaderWriter // contains filtered or unexported fields }
func NewRunTestSignalCommandHandler ¶
func NewRunTestSignalCommandHandler(dbs func() *db.ReaderWriter, logger zerolog.Logger, userDeviceService services.UserDeviceService) RunTestSignalCommandHandler
func (RunTestSignalCommandHandler) Execute ¶
func (h RunTestSignalCommandHandler) Execute(ctx context.Context, command *RunTestSignalCommandRequest) error
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 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
}
Click to show internal directories.
Click to hide internal directories.