Documentation
¶
Index ¶
Constants ¶
View Source
const ( OPTION_PRIVATE_PREFIX = "__" OPTION_DEVICE_ID = "__device_id" OPTION_SECRET = "__secret" )
View Source
const ( SYNC_DEVICE = "device" SYNC_SLOT = "slot" SYNC_OPTION = "option" SYNC_PORT = "port" SYNC_PROXY = "proxy" SYNC_SOURCE = "source" SYNC_TAG = "tag" SYNC_TAG_VALUE = "tag_value" SYNC_VAR = "var" SYNC_CABLE = "cable" SYNC_WIRE = "wire" SYNC_WIRE_VALUE = "wire_value" )
View Source
const ( SYNC_LOCAL_DEVICE = "l_device" SYNC_REMOTE_DEVICE = "r_device" SYNC_REMOTE_TAG_VALUE = "r_tag_value" SYNC_LOCAL_WIRE_VALUE = "l_wire_value" SYNC_REMOTE_WIRE_VALUE = "r_wire_value" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cable ¶
type Cable struct {
bun.BaseModel `bun:"cable"`
ID string `bun:"type:TEXT,pk" json:"id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
Type string `bun:"type,type:TEXT" json:"type"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Save int32 `bun:"save" json:"save"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Device ¶
type Device struct {
bun.BaseModel `bun:"device"`
ID string `bun:"type:TEXT,pk" json:"id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
Type string `bun:"type,type:TEXT" json:"type"`
Location string `bun:"location,type:TEXT" json:"location"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Option ¶
type Option struct {
bun.BaseModel `bun:"option"`
ID string `bun:"type:TEXT,pk" json:"id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
Type string `bun:"type,type:TEXT" json:"type"`
Value string `bun:"value,type:TEXT" json:"value"`
Status int32 `bun:"status" json:"status"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Port ¶
type Port struct {
bun.BaseModel `bun:"port"`
ID string `bun:"type:TEXT,pk" json:"id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
Type string `bun:"type,type:TEXT" json:"type"`
Network string `bun:"network,type:TEXT" json:"network"`
Address string `bun:"address,type:TEXT" json:"address"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Proxy ¶
type Proxy struct {
bun.BaseModel `bun:"proxy"`
ID string `bun:"type:TEXT,pk" json:"id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
Type string `bun:"type,type:TEXT" json:"type"`
Network string `bun:"network,type:TEXT" json:"network"`
Address string `bun:"address,type:TEXT" json:"address"`
Target string `bun:"target,type:TEXT" json:"target"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Slot ¶
type Slot struct {
bun.BaseModel `bun:"slot"`
ID string `bun:"type:TEXT,pk" json:"id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
Type string `bun:"type,type:TEXT" json:"type"`
Secret string `bun:"secret,type:TEXT" json:"secret"`
Location string `bun:"location,type:TEXT" json:"location"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Source ¶
type Source struct {
bun.BaseModel `bun:"source"`
ID string `bun:"type:TEXT,pk" json:"id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
Type string `bun:"type,type:TEXT" json:"type"`
Source string `bun:"source,type:TEXT" json:"source"`
Params string `bun:"params,type:TEXT" json:"params"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Upload int32 `bun:"upload" json:"upload"`
Save int32 `bun:"save" json:"save"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Tag ¶
type Tag struct {
bun.BaseModel `bun:"tag"`
ID string `bun:"type:TEXT,pk" json:"id"`
SourceID string `bun:"source_id,type:TEXT" json:"source_id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Type string `bun:"type,type:TEXT" json:"type"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
DataType string `bun:"data_type,type:TEXT" json:"data_type"`
Address string `bun:"address,type:TEXT" json:"address"`
HValue string `bun:"h_value,type:TEXT" json:"h_value"`
LValue string `bun:"l_value,type:TEXT" json:"l_value"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Access int32 `bun:"access" json:"access"`
Upload int32 `bun:"upload" json:"upload"`
Save int32 `bun:"save" json:"save"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
func (*Tag) DefaultValue ¶
type TagValue ¶
type TagValue struct {
bun.BaseModel `bun:"tag_value"`
ID string `bun:"type:TEXT,pk" json:"id"`
SourceID string `bun:"source_id,type:TEXT" json:"source_id"`
Value string `bun:"value,type:TEXT" json:"value"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Var ¶
type Var struct {
bun.BaseModel `bun:"var"`
ID string `bun:"type:TEXT,pk" json:"id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
Type string `bun:"type,type:TEXT" json:"type"`
DataType string `bun:"data_type,type:TEXT" json:"data_type"`
Value string `bun:"value,type:TEXT" json:"value"`
HValue string `bun:"h_value,type:TEXT" json:"h_value"`
LValue string `bun:"l_value,type:TEXT" json:"l_value"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Access int32 `bun:"access" json:"access"`
Save int32 `bun:"save" json:"save"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
func (*Var) DefaultValue ¶
type Wire ¶
type Wire struct {
bun.BaseModel `bun:"wire"`
ID string `bun:"type:TEXT,pk" json:"id"`
CableID string `bun:"cable_id,type:TEXT" json:"cable_id"`
Name string `bun:"name,type:TEXT" json:"name"`
Desc string `bun:"desc,type:TEXT" json:"desc"`
Type string `bun:"type,type:TEXT" json:"type"`
Tags string `bun:"tags,type:TEXT" json:"tags"`
DataType string `bun:"data_type,type:TEXT" json:"data_type"`
HValue string `bun:"h_value,type:TEXT" json:"h_value"`
LValue string `bun:"l_value,type:TEXT" json:"l_value"`
TagID string `bun:"tag_id,type:TEXT" json:"tag_id"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Access int32 `bun:"access" json:"access"`
Save int32 `bun:"save" json:"save"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
func (*Wire) DefaultValue ¶
type WireValue ¶
type WireValue struct {
bun.BaseModel `bun:"wire_value"`
ID string `bun:"type:TEXT,pk" json:"id"`
CableID string `bun:"cable_id,type:TEXT" json:"cable_id"`
Value string `bun:"value,type:TEXT" json:"value"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Updated time.Time `bun:"updated" json:"updated"`
}
Click to show internal directories.
Click to hide internal directories.