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 { }
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 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 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.