usecase

package
v0.0.0-...-d84cd13 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 0 Imported by: 0

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 ConstructionRunnerEntity

type ConstructionRunnerEntity struct {
	ID             int64
	Name           string
	ContainerID    string
	ConstructionID int64
}

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

Jump to

Keyboard shortcuts

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