Documentation
¶
Index ¶
- type Aggregator
- type Broker
- type BrokerHistory
- type Calculator
- type Device
- type DeviceEvent
- type DeviceHistory
- type ExternalAggregator
- type ExternalValidator
- type Filter
- type Gateway
- type History
- type HistoryEx
- type Parameters
- type Password
- type Product
- type ProductExt
- type ProductVersion
- type Project
- type ProjectExt
- type ProjectPlugin
- type ProjectUser
- type Space
- type SpaceDevice
- type Time
- type Type
- func (dt *Type) Decode(buf []byte, le bool, precision int) (val interface{}, err error)
- func (dt *Type) Default() interface{}
- func (dt *Type) Encode(value interface{}, le bool, precision int) []byte
- func (dt *Type) MarshalJSON() ([]byte, error)
- func (dt *Type) Normalize(val interface{}) interface{}
- func (dt *Type) Parse(tp string) error
- func (dt *Type) Size() int
- func (dt *Type) String() string
- func (dt *Type) UnmarshalJSON(buf []byte) error
- type User
- type UserHistory
- type Validator
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type BrokerHistory ¶
type Calculator ¶ added in v4.0.11
type Device ¶
type Device struct { Id string `json:"id" xorm:"pk"` //ClientID GatewayId string `json:"gateway_id,omitempty" xorm:"index"` ProductId string `json:"product_id,omitempty" xorm:"index"` ProjectId string `json:"project_id,omitempty" xorm:"index"` ProductVersion string `json:"product_version,omitempty"` Gateway string `json:"gateway,omitempty" xorm:"<-"` Product string `json:"product,omitempty" xorm:"<-"` Project string `json:"project,omitempty" xorm:"<-"` Name string `json:"name"` Description string `json:"description,omitempty"` Parameters map[string]float64 `json:"parameters,omitempty" xorm:"json"` //模型参数,用于报警检查 Disabled bool `json:"disabled,omitempty"` Created time.Time `json:"created,omitempty" xorm:"created"` Online bool `json:"online,omitempty" xorm:"-"` }
type DeviceEvent ¶
type DeviceHistory ¶
type ExternalAggregator ¶
type ExternalAggregator struct { Id string `json:"id" xorm:"pk"` ProjectId string `json:"project_id" xorm:"index"` ProductId string `json:"product_id" xorm:"index"` DeviceId string `json:"device_id" xorm:"index"` Name string `json:"name"` //名称 Description string `json:"description"` //说明 Disabled bool `json:"disabled"` //禁用 Created time.Time `json:"created" xorm:"created"` Aggregator `xorm:"extends"` }
type ExternalValidator ¶
type ExternalValidator struct { Id string `json:"id" xorm:"pk"` ProjectId string `json:"project_id" xorm:"index"` ProductId string `json:"product_id" xorm:"index"` DeviceId string `json:"device_id" xorm:"index"` Disabled bool `json:"disabled"` Created time.Time `json:"created" xorm:"created"` Validator `xorm:"extends"` }
type Filter ¶ added in v4.0.11
type Gateway ¶
type Gateway struct { Id string `json:"id" xorm:"pk"` Name string `json:"name"` Description string `json:"description,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` ProjectId string `json:"project_id,omitempty" xorm:"index"` Project string `json:"project,omitempty" xorm:"<-"` Disabled bool `json:"disabled,omitempty"` Created time.Time `json:"created,omitempty" xorm:"created"` }
type Parameters ¶
type Product ¶
type Product struct { Id string `json:"id" xorm:"pk"` //ID Icon string `json:"icon,omitempty"` //图标 Name string `json:"name,omitempty"` //名称 Url string `json:"url,omitempty"` //链接 Description string `json:"description,omitempty"` //说明 Keywords []string `json:"keywords,omitempty"` //关键字 Created time.Time `json:"created" xorm:"created"` }
type ProductExt ¶
type ProductExt struct {
Product
}
func (ProductExt) TableName ¶
func (p ProductExt) TableName() string
type ProductVersion ¶ added in v4.0.12
type Project ¶
type Project struct { Id string `json:"id" xorm:"pk"` Icon string `json:"icon,omitempty"` //图标 Name string `json:"name,omitempty"` //名称 Description string `json:"description,omitempty"` //说明 Keywords []string `json:"keywords,omitempty"` //关键字 Disabled bool `json:"disabled,omitempty"` Created time.Time `json:"created" xorm:"created"` }
type ProjectExt ¶
type ProjectExt struct {
Project
}
func (ProjectExt) TableName ¶
func (p ProjectExt) TableName() string
type ProjectPlugin ¶
type ProjectUser ¶
type Space ¶
type Space struct { Id string `json:"id" xorm:"pk"` Name string `json:"name,omitempty"` //名称 Description string `json:"description,omitempty"` //说明 ProjectId string `json:"project_id,omitempty" xorm:"index"` Project string `json:"project,omitempty" xorm:"<-"` Disabled bool `json:"disabled,omitempty"` Created time.Time `json:"created" xorm:"created"` }
type SpaceDevice ¶
type User ¶
type User struct { Id string `json:"id" xorm:"pk"` Name string `json:"name,omitempty"` Email string `json:"email,omitempty"` Cellphone string `json:"cellphone,omitempty"` Admin bool `json:"admin,omitempty"` Disabled bool `json:"disabled,omitempty"` Created time.Time `json:"created,omitempty" xorm:"created"` }
User 用户
type UserHistory ¶
type Validator ¶
type Validator struct { Expression string `json:"expression"` Type string `json:"type"` Title string `json:"title"` Level uint `json:"level"` Template string `json:"template"` Delay uint `json:"delay,omitempty"` //延迟时间s Repeat bool `json:"repeat,omitempty"` //重启报警 RepeatDelay uint `json:"repeat_delay,omitempty"` //再次提醒间隔s RepeatTotal uint `json:"repeat_total,omitempty"` //总提醒次数 }
Click to show internal directories.
Click to hide internal directories.