Documentation ¶
Index ¶
- func DeleteDeviceInfos(id int) error
- func DeleteDeviceModel(id string) error
- func DeleteDevices(id string) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func UpdateDeviceModel(req *UpdateDeviceModelRequest) error
- func UpdateDevices(req *UpdateDevicesRequest) error
- type CreateDeviceInfosRequest
- type CreateDeviceInfosResponse
- type CreateDeviceModelRequest
- type CreateDeviceModelResponse
- type CreateDevicesRequest
- type CreateDevicesResponse
- type DeleteDeviceInfosResponse
- type DeleteDeviceModelResponse
- type DeleteDevicesResponse
- type DeviceInfosInfo
- type DeviceModelInfo
- type DevicesInfo
- type GetDeviceInfosesQuery
- type GetDeviceInfosesResponse
- type GetDeviceModelsQuery
- type GetDeviceModelsResponse
- type GetDevicesesQuery
- type GetDevicesesResponse
- type UpdateDeviceModelRequest
- type UpdateDeviceModelResponse
- type UpdateDevicesRequest
- type UpdateDevicesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteDeviceInfos ¶
func DeleteDeviceModel ¶
func DeleteDevices ¶
func UpdateDeviceModel ¶
func UpdateDeviceModel(req *UpdateDeviceModelRequest) error
func UpdateDevices ¶
func UpdateDevices(req *UpdateDevicesRequest) error
Types ¶
type CreateDeviceInfosResponse ¶
type CreateDeviceInfosResponse struct { ID uint64 `json:"id"` // contains filtered or unexported fields }
type CreateDeviceModelResponse ¶
type CreateDeviceModelResponse struct { ID string `json:"id"` // contains filtered or unexported fields }
func CreateDeviceModel ¶
func CreateDeviceModel(req *CreateDeviceModelRequest) (*CreateDeviceModelResponse, error)
type CreateDevicesRequest ¶
type CreateDevicesRequest struct { OrgID string `json:"orgId" binding:"required"` Namespace string `json:"namespace" binding:"required"` DeviceModelID string `json:"deviceModelId" binding:"required"` Name string `json:"name" binding:"required"` DeviceIdentifier string `json:"deviceIdentifier" binding:"required"` Desc string `json:"desc" binding:"required"` }
type CreateDevicesResponse ¶
type CreateDevicesResponse struct { ID string `json:"id"` // contains filtered or unexported fields }
func CreateDevices ¶
func CreateDevices(req *CreateDevicesRequest) (*CreateDevicesResponse, error)
type DeleteDeviceInfosResponse ¶
type DeleteDeviceInfosResponse struct {
// contains filtered or unexported fields
}
type DeleteDeviceModelResponse ¶
type DeleteDeviceModelResponse struct {
// contains filtered or unexported fields
}
type DeleteDevicesResponse ¶
type DeleteDevicesResponse struct {
// contains filtered or unexported fields
}
type DeviceInfosInfo ¶
type DeviceModelInfo ¶
type DevicesInfo ¶
type GetDeviceInfosesQuery ¶
type GetDeviceInfosesResponse ¶
type GetDeviceInfosesResponse struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []DeviceInfosInfo `json:"infos"` // contains filtered or unexported fields }
func GetDeviceInfoses ¶
func GetDeviceInfoses(req *GetDeviceInfosesQuery) (*GetDeviceInfosesResponse, error)
type GetDeviceModelsQuery ¶
type GetDeviceModelsResponse ¶
type GetDeviceModelsResponse struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []DeviceModelInfo `json:"infos"` // contains filtered or unexported fields }
func GetDeviceModels ¶
func GetDeviceModels(req *GetDeviceModelsQuery) (*GetDeviceModelsResponse, error)
type GetDevicesesQuery ¶
type GetDevicesesResponse ¶
type GetDevicesesResponse struct { PageNo int `json:"pageNo"` TotalCount int64 `json:"totalCount"` Infos []DevicesInfo `json:"infos"` // contains filtered or unexported fields }
func GetDeviceses ¶
func GetDeviceses(req *GetDevicesesQuery) (*GetDevicesesResponse, error)
type UpdateDeviceModelResponse ¶
type UpdateDeviceModelResponse struct {
// contains filtered or unexported fields
}
type UpdateDevicesRequest ¶
type UpdateDevicesResponse ¶
type UpdateDevicesResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.