commands

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCommandHandler

type BaseCommandHandler struct {
}

func (BaseCommandHandler) Execute

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

type CreateDBCCodeCommandRequest

type CreateDBCCodeCommandRequest struct {
	Name             string
	DBCContents      string
	Header           int
	Trigger          string
	RecordingEnabled bool
	MaxSampleSize    int32
}

type CreateDBCCodeCommandResponse

type CreateDBCCodeCommandResponse struct {
	ID   string
	Name string
}

type CreateTestSignalCommandHandler

type CreateTestSignalCommandHandler struct {
	DBS func() *db.ReaderWriter
}

func NewCreateTestSignalCommandHandler

func NewCreateTestSignalCommandHandler(dbs func() *db.ReaderWriter) CreateTestSignalCommandHandler

func (CreateTestSignalCommandHandler) Execute

type CreateTestSignalCommandRequest

type CreateTestSignalCommandRequest struct {
	DeviceDefinitionID string
	DBCCodesID         string
	UserDeviceID       string
	AutoPIUnitID       string
	Value              string
	Approved           bool
}

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 RunTestSignalItemCommandRequest struct {
	Value any    `json:"value"`
	Time  string `json:"_stamp"`
}

type UpdateDBCCodeCommandHandler

type UpdateDBCCodeCommandHandler struct {
	DBS func() *db.ReaderWriter
}

func NewUpdateDBCCodeCommandHandler

func NewUpdateDBCCodeCommandHandler(dbs func() *db.ReaderWriter) UpdateDBCCodeCommandHandler

func (UpdateDBCCodeCommandHandler) Execute

type UpdateDBCCodeCommandRequest

type UpdateDBCCodeCommandRequest struct {
	ID               string
	Name             string
	DBCContents      string
	Header           int
	Trigger          string
	RecordingEnabled bool
	MaxSampleSize    int32
}

type UpdateDBCCodeCommandResponse

type UpdateDBCCodeCommandResponse struct {
	ID   string
	Name string
}

type UpdateTestSignalCommandHandler

type UpdateTestSignalCommandHandler struct {
	DBS func() *db.ReaderWriter
}

func NewUpdateTestSignalCommandHandler

func NewUpdateTestSignalCommandHandler(dbs func() *db.ReaderWriter) UpdateTestSignalCommandHandler

func (UpdateTestSignalCommandHandler) Execute

type UpdateTestSignalCommandRequest

type UpdateTestSignalCommandRequest struct {
	ID                 string
	DeviceDefinitionID string
	DBCCodesID         string
	UserDeviceID       string
	AutoPIUnitID       string
	Value              string
	Approved           bool
}

type UpdateTestSignalCommandResponse

type UpdateTestSignalCommandResponse struct {
	ID string
}

Directories

Path Synopsis
Package mock_commands is a generated GoMock package.
Package mock_commands is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL