Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *gorm.DB
Db .
Functions ¶
Types ¶
type DbConfig ¶
type DbConfig struct {
Host string
User string
Password string
Name string
Port int
Charset string
}
DbConfig .
type Metadata ¶
type Metadata struct {
Model
Name string `gorm:"index"`
Type string
Size int64
Hash string `gorm:"index"`
StoreNode string
StorePath string
Usable bool `gorm:"index"` //节点是否可用.
BucketID int `gorm:"index"`
}
Metadata 元数据.
Click to show internal directories.
Click to hide internal directories.