Documentation ¶
Index ¶
- func AddDevice(addDeviceRequest requests.AddDeviceRequest, dic *di.Container) errors.EdgeX
- func AddProfile(profileRequest requests.DeviceProfileRequest, lc logger.LoggingClient) errors.EdgeX
- func CommandHandler(isRead bool, sendEvent bool, correlationID string, vars map[string]string, ...) (event *dtos.Event, err edgexErr.EdgeX)
- func DeleteDevice(id string, dic *di.Container) errors.EdgeX
- func DeleteProfile(id string, dic *di.Container) errors.EdgeX
- func SendEvent(event *dtos.Event, correlationID string, lc logger.LoggingClient, ...)
- func UpdateDevice(updateDeviceRequest requests.UpdateDeviceRequest, dic *di.Container) errors.EdgeX
- func UpdateProfile(profileRequest requests.DeviceProfileRequest, lc logger.LoggingClient) errors.EdgeX
- type CommandProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProfile ¶
func AddProfile(profileRequest requests.DeviceProfileRequest, lc logger.LoggingClient) errors.EdgeX
func CommandHandler ¶
func SendEvent ¶
func SendEvent(event *dtos.Event, correlationID string, lc logger.LoggingClient, ec coredata.EventClient)
func UpdateDevice ¶
func UpdateProfile ¶
func UpdateProfile(profileRequest requests.DeviceProfileRequest, lc logger.LoggingClient) errors.EdgeX
Types ¶
type CommandProcessor ¶
type CommandProcessor struct {
// contains filtered or unexported fields
}
func NewCommandProcessor ¶
func NewCommandProcessor(device *contract.Device, dr *contract.DeviceResource, correlationID string, cmd string, params string, dic *di.Container) *CommandProcessor
func (*CommandProcessor) ReadCommand ¶
func (c *CommandProcessor) ReadCommand() (*dtos.Event, edgexErr.EdgeX)
func (*CommandProcessor) ReadDeviceResource ¶
func (c *CommandProcessor) ReadDeviceResource() (*dtos.Event, edgexErr.EdgeX)
func (*CommandProcessor) WriteCommand ¶
func (c *CommandProcessor) WriteCommand() edgexErr.EdgeX
func (*CommandProcessor) WriteDeviceResource ¶
func (c *CommandProcessor) WriteDeviceResource() edgexErr.EdgeX
Click to show internal directories.
Click to hide internal directories.