Documentation ¶
Overview ¶
Package devicectl for Device Control
Index ¶
- type ControlDeviceRequest
- type ControlDeviceResponse
- type DeviceCommand
- type DeviceFunction
- type Function
- type QueryCategoryFunctionRequest
- type QueryCategoryFunctionResponse
- type QueryDeviceFunctionRequest
- type QueryDeviceFunctionResponse
- type QueryDeviceStatusRequest
- type QueryDeviceStatusResponse
- type QuerySpecificationsRequest
- type QuerySpecificationsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlDeviceRequest ¶
type ControlDeviceRequest struct { DeviceID string `url:"-" validate:"required" json:"-"` // device id Commands []DeviceCommand `url:"-" validate:"required" json:"commands"` // commands }
func (*ControlDeviceRequest) Method ¶
func (s *ControlDeviceRequest) Method() string
Method for Request.Method()
func (*ControlDeviceRequest) URL ¶
func (s *ControlDeviceRequest) URL() string
URL for Request.URL()
type ControlDeviceResponse ¶
type ControlDeviceResponse bool
type DeviceCommand ¶
type DeviceCommand struct { Code string `json:"code"` Value interface{} `json:"value"` }
type DeviceFunction ¶
type QueryCategoryFunctionRequest ¶
type QueryCategoryFunctionRequest struct {
Category string `url:"-" validate:"required" json:"-"` // category name
}
func (*QueryCategoryFunctionRequest) Method ¶
func (s *QueryCategoryFunctionRequest) Method() string
Method for Request.Method()
func (*QueryCategoryFunctionRequest) URL ¶
func (s *QueryCategoryFunctionRequest) URL() string
URL for Request.URL()
type QueryCategoryFunctionResponse ¶
type QueryCategoryFunctionResponse Function
type QueryDeviceFunctionRequest ¶
type QueryDeviceFunctionRequest struct {
DeviceID string `url:"-" validate:"required" json:"-"` // Device id
}
func (*QueryDeviceFunctionRequest) Method ¶
func (s *QueryDeviceFunctionRequest) Method() string
Method for Request.Method()
func (*QueryDeviceFunctionRequest) URL ¶
func (s *QueryDeviceFunctionRequest) URL() string
URL for Request.URL()
type QueryDeviceFunctionResponse ¶
type QueryDeviceFunctionResponse struct { Category string `json:"category"` // Category Functions []DeviceFunction `json:"functions"` // Functions }
type QueryDeviceStatusRequest ¶
type QueryDeviceStatusRequest struct {
DeviceID string `url:"-" validate:"required" json:"-"` // device id
}
func (*QueryDeviceStatusRequest) Method ¶
func (s *QueryDeviceStatusRequest) Method() string
Method for Request.Method()
func (*QueryDeviceStatusRequest) URL ¶
func (s *QueryDeviceStatusRequest) URL() string
URL for Request.URL()
type QueryDeviceStatusResponse ¶
type QueryDeviceStatusResponse []DeviceCommand
type QuerySpecificationsRequest ¶
type QuerySpecificationsRequest struct {
DeviceID string `url:"-" validate:"required" json:"-"` // device id
}
func (*QuerySpecificationsRequest) Method ¶
func (s *QuerySpecificationsRequest) Method() string
Method for Request.Method()
func (*QuerySpecificationsRequest) URL ¶
func (s *QuerySpecificationsRequest) URL() string
URL for Request.URL()
Click to show internal directories.
Click to hide internal directories.