das

package
v0.13.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDeviceInfos

func DeleteDeviceInfos(id int) error

func DeleteDeviceModel

func DeleteDeviceModel(id string) error

func DeleteDevices

func DeleteDevices(id string) error

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func UpdateDeviceModel

func UpdateDeviceModel(req *UpdateDeviceModelRequest) error

func UpdateDevices

func UpdateDevices(req *UpdateDevicesRequest) error

Types

type CreateDeviceInfosRequest

type CreateDeviceInfosRequest struct {
	OrgID     string `json:"orgId" binding:"required"`
	Namespace string `json:"namespace" binding:"required"`
	DeviceID  string `json:"deviceId" binding:"required"`
	Info      string `json:"info" binding:"required"`
}

type CreateDeviceInfosResponse

type CreateDeviceInfosResponse struct {
	ID uint64 `json:"id"`
	// contains filtered or unexported fields
}

type CreateDeviceModelRequest

type CreateDeviceModelRequest struct {
	Name          string `json:"name" binding:"required"`
	DeviceType    string `json:"deviceType" binding:"required"`
	DeviceFactory string `json:"deviceFactory" binding:"required"`
	Path          string `json:"path" binding:"required"`
}

type CreateDeviceModelResponse

type CreateDeviceModelResponse struct {
	ID string `json:"id"`
	// contains filtered or unexported fields
}

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
}

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 DeviceInfosInfo struct {
	ID        uint64 `json:"id"`
	Namespace string `json:"namespace"`
	DeviceID  string `json:"deviceId"`
	Info      string `json:"info"`
	OrgID     string `json:"orgId"`
}

type DeviceModelInfo

type DeviceModelInfo struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	DeviceType    string `json:"deviceType"`
	DeviceFactory string `json:"deviceFactory"`
	Path          string `json:"path"`
}

type DevicesInfo

type DevicesInfo struct {
	ID               string `json:"id"`
	Namespace        string `json:"namespace"`
	DeviceModelID    string `json:"deviceModelId"`
	Name             string `json:"name"`
	DeviceIdentifier string `json:"deviceIdentifier"`
	Desc             string `json:"desc"`
	OrgID            string `json:"orgId"`
}

type GetDeviceInfosesQuery

type GetDeviceInfosesQuery struct {
	OrgID     string `form:"orgId"`
	ID        uint64 `form:"id"`
	Namespace string `form:"namespace"`
	DeviceID  string `form:"deviceId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetDeviceInfosesResponse

type GetDeviceInfosesResponse struct {
	PageNo     int               `json:"pageNo"`
	TotalCount int64             `json:"totalCount"`
	Infos      []DeviceInfosInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetDeviceModelsQuery

type GetDeviceModelsQuery struct {
	ID         string `form:"id"`
	Name       string `form:"name"`
	DeviceType string `form:"deviceType"`
	Path       string `form:"path"`
	PageNo     int    `form:"pageNo"`
	PageSize   int    `form:"pageSize"`
}

type GetDeviceModelsResponse

type GetDeviceModelsResponse struct {
	PageNo     int               `json:"pageNo"`
	TotalCount int64             `json:"totalCount"`
	Infos      []DeviceModelInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetDevicesesQuery

type GetDevicesesQuery struct {
	OrgID            string `form:"orgId"`
	ID               string `form:"id"`
	Namespace        string `form:"namespace"`
	Name             string `form:"name"`
	DeviceIdentifier string `form:"deviceIdentifier"`
	PageNo           int    `form:"pageNo"`
	PageSize         int    `form:"pageSize"`
}

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 UpdateDeviceModelRequest

type UpdateDeviceModelRequest struct {
	ID            string `json:"id" binding:"required"`
	Name          string `json:"name"`
	DeviceType    string `json:"deviceType"`
	DeviceFactory string `json:"deviceFactory"`
	Path          string `json:"path"`
}

type UpdateDeviceModelResponse

type UpdateDeviceModelResponse struct {
	// contains filtered or unexported fields
}

type UpdateDevicesRequest

type UpdateDevicesRequest struct {
	OrgID            string `json:"orgId" binding:"required"`
	ID               string `json:"id" binding:"required"`
	DeviceModelID    string `json:"deviceModelId"`
	Name             string `json:"name"`
	DeviceIdentifier string `json:"deviceIdentifier"`
	Desc             string `json:"desc"`
}

type UpdateDevicesResponse

type UpdateDevicesResponse struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL