Documentation ¶
Index ¶
- Constants
- func NewCommandClient(messageBus messaging.MessageClient, topics map[string]string, ...) (interfaces.CommandClient, error)
- type CommandClient
- func (c *CommandClient) AllDeviceCoreCommands(ctx context.Context, offset int, limit int) (responses.MultiDeviceCoreCommandsResponse, edgexErr.EdgeX)
- func (c *CommandClient) DeviceCoreCommandsByDeviceName(ctx context.Context, deviceName string) (responses.DeviceCoreCommandResponse, edgexErr.EdgeX)
- func (c *CommandClient) IssueGetCommandByName(ctx context.Context, deviceName string, commandName string, dsPushEvent string, ...) (*responses.EventResponse, edgexErr.EdgeX)
- func (c *CommandClient) IssueGetCommandByNameWithQueryParams(ctx context.Context, deviceName string, commandName string, ...) (*responses.EventResponse, edgexErr.EdgeX)
- func (c *CommandClient) IssueSetCommandByName(ctx context.Context, deviceName string, commandName string, ...) (commonDTO.BaseResponse, edgexErr.EdgeX)
- func (c *CommandClient) IssueSetCommandByNameWithObject(ctx context.Context, deviceName string, commandName string, ...) (commonDTO.BaseResponse, edgexErr.EdgeX)
Constants ¶
View Source
const ( QueryRequestTopicPrefix = "QueryRequestTopicPrefix" QueryResponseTopic = "QueryResponseTopic" CommandRequestTopicPrefix = "CommandRequestTopicPrefix" CommandResponseTopic = "CommandResponseTopic" )
Variables ¶
This section is empty.
Functions ¶
func NewCommandClient ¶
func NewCommandClient(messageBus messaging.MessageClient, topics map[string]string, timeout time.Duration) (interfaces.CommandClient, error)
Types ¶
type CommandClient ¶
type CommandClient struct {
// contains filtered or unexported fields
}
func (*CommandClient) AllDeviceCoreCommands ¶
func (c *CommandClient) AllDeviceCoreCommands(ctx context.Context, offset int, limit int) (responses.MultiDeviceCoreCommandsResponse, edgexErr.EdgeX)
func (*CommandClient) DeviceCoreCommandsByDeviceName ¶
func (c *CommandClient) DeviceCoreCommandsByDeviceName(ctx context.Context, deviceName string) (responses.DeviceCoreCommandResponse, edgexErr.EdgeX)
func (*CommandClient) IssueGetCommandByName ¶
func (*CommandClient) IssueGetCommandByNameWithQueryParams ¶
func (*CommandClient) IssueSetCommandByName ¶
func (*CommandClient) IssueSetCommandByNameWithObject ¶
Click to show internal directories.
Click to hide internal directories.