Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstructionCURDEntity ¶
type ConstructionCURDEntity struct { ID int64 Name string Status ConstructionStatus DataAdapter string DataResource ConstructionData DataDestination ConstructionData Args string Schema string SchemaAdapter string AlarmAdapter string }
func (*ConstructionCURDEntity) RestPath ¶
func (c *ConstructionCURDEntity) RestPath() string
func (*ConstructionCURDEntity) TableName ¶
func (c *ConstructionCURDEntity) TableName() string
type ConstructionData ¶
type ConstructionData string
const ( ConstructionDataInner ConstructionData = "inner" ConstructionDataOuter ConstructionData = "outer" )
type ConstructionEntity ¶
type ConstructionEntity struct { ID int64 Name string Status ConstructionStatus DataAdapter string DataResource ConstructionData DataDestination ConstructionData Args string Schema string SchemaAdapter string AlarmAdapter string Runners []*ConstructionRunnerEntity }
type ConstructionStatus ¶
type ConstructionStatus string
const ( ConstructionStatusDraft ConstructionStatus = "draft" ConstructionStatusTestFailed ConstructionStatus = "test_failed" ConstructionStatusTested ConstructionStatus = "tested" ConstructionStatusRunning ConstructionStatus = "running" ConstructionStatusStopped ConstructionStatus = "stopped" ConstructionStatusRemoved ConstructionStatus = "removed" )
type DeviceEntity ¶
type DeviceEntity struct { ID int64 `json:"id" sql:"auto_increment"` Name string `json:"name" sql:"not_null"` Status string Health string Lat float64 `json:"lat"` Lng float64 `json:"lng"` TemplateID int64 ParentID int64 JcdID int64 }
func (*DeviceEntity) RestPath ¶
func (u *DeviceEntity) RestPath() string
func (*DeviceEntity) TableName ¶
func (u *DeviceEntity) TableName() string
type DeviceTemplateEntity ¶
type DeviceTemplateEntity struct { ID int64 `json:"id" sql:"auto_increment"` Name string `json:"name" sql:"not_null"` Model string // The model of the device, representing its specific version or type. Maker string // The manufacturer or brand that produced the device. Types string // Specifies the category or type of the device, such as 'tester', 'camera', or 'hyetometer'. Protocol DeviceTemplateProtocol }
func (*DeviceTemplateEntity) RestPath ¶
func (t *DeviceTemplateEntity) RestPath() string
func (*DeviceTemplateEntity) TableName ¶
func (t *DeviceTemplateEntity) TableName() string
type DeviceTemplateProtocol ¶
type DeviceTemplateProtocol string
const ( ProtocolMQTT DeviceTemplateProtocol = "mqtt" ProtocolHTTP DeviceTemplateProtocol = "http" )
func (DeviceTemplateProtocol) String ¶
func (p DeviceTemplateProtocol) String() string
Click to show internal directories.
Click to hide internal directories.