Documentation
¶
Index ¶
Constants ¶
View Source
const ( SYNC_PREFIX = "sync_" SYNC_DEVICE = "sync_device" SYNC_SLOT = "sync_slot" SYNC_OPTION = "sync_option" SYNC_SOURCE = "sync_source" SYNC_TAG = "sync_tag" SYNC_CONST = "sync_const" SYNC_CLASS = "sync_class" SYNC_ATTR = "sync_attr" SYNC_LOGIC = "sync_logic" SYNC_FN = "sync_fn" SYNC_TAG_VALUE = "sync_tag_value" SYNC_DEVICE_REMOTE_TO_LOCAL = "sync_device_rtl" SYNC_DEVICE_LOCAL_TO_REMOTE = "sync_device_ltr" SYNC_TAG_VALUE_REMOTE_TO_LOCAL = "sync_tgv_rtl" SYNC_TAG_VALUE_LOCAL_TO_REMOTE = "sync_tgv_ltr" )
View Source
const (
TAG_VALUE_PREFIX = "tgv_"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attr ¶
type Attr struct {
bun.BaseModel `bun:"attr"`
ID string `bun:"type:TEXT,pk" json:"id"`
ClassID string `bun:"class_id,type:TEXT" json:"class_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 (*Attr) DefaultValue ¶
type Class ¶
type Class struct {
bun.BaseModel `bun:"class"`
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 Const ¶
type Const struct {
bun.BaseModel `bun:"const"`
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"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
func (*Const) DefaultValue ¶
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"`
Arch string `bun:"arch,type:TEXT" json:"arch"`
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 Fn ¶
type Fn struct {
bun.BaseModel `bun:"fn"`
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"`
Exec string `bun:"exec,type:TEXT" json:"exec"`
Main string `bun:"main,type:TEXT" json:"main"`
Config string `bun:"config,type:TEXT" json:"config"`
Status int32 `bun:"status" json:"status"`
Debug int32 `bun:"debug" json:"debug"`
Deleted time.Time `bun:"deleted,soft_delete" json:"-"`
Created time.Time `bun:"created" json:"created"`
Updated time.Time `bun:"updated" json:"updated"`
}
type Logic ¶
type Logic struct {
bun.BaseModel `bun:"logic"`
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"`
Exec string `bun:"exec,type:TEXT" json:"exec"`
Main string `bun:"main,type:TEXT" json:"main"`
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"`
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"`
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 User ¶
type User struct {
bun.BaseModel `bun:"user"`
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"`
Pass string `bun:"pass,type:TEXT" json:"pass"`
Role string `bun:"role,type:TEXT" json:"role"`
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"`
}
Click to show internal directories.
Click to hide internal directories.