Documentation ¶
Index ¶
Constants ¶
View Source
const ( ID = "id" NAME = "name" DEVICEIDURLPARAM = "{deviceId}" COMMAND = "command" COMMANDID = "commandid" COMMANDNAME = "commandname" DEVICE = "device" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bootstrap ¶
type Bootstrap struct {
// contains filtered or unexported fields
}
Bootstrap contains references to dependencies required by the BootstrapHandler.
func NewBootstrap ¶
NewBootstrap is a factory method that returns an initialized Bootstrap receiver struct.
type Executor ¶
Executor interface used to execute commands
func NewGetCommand ¶
func NewGetCommand( device contract.Device, command contract.Command, context context.Context, httpCaller internal.HttpCaller, lc logger.LoggingClient, originalRequest *http.Request) (Executor, error)
NewGetCommand creates and Executor which can be used to execute the GET related command.
func NewPutCommand ¶
func NewPutCommand( device contract.Device, command contract.Command, body string, context context.Context, httpCaller internal.HttpCaller, lc logger.LoggingClient, originalRequest *http.Request) (Executor, error)
NewPutCommand creates and Executor which can be used to execute the PUT related command.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.