Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemaRecord = `` /* 462-byte string literal not displayed */
View Source
var TableHistoryNameCPU = "history_res_alloc_cpu"
View Source
var TableHistoryNameGPU = "history_res_alloc_gpu"
View Source
var TableHistoryNameStorage = "history_res_alloc_storage"
View Source
var TableNameCPU = "res_alloc_cpu"
View Source
var TableNameGPU = "res_alloc_gpu"
View Source
var TableNameStorage = "res_alloc_storage"
Functions ¶
func GetSchemaCPU ¶
func GetSchemaCPU() string
func GetSchemaGPU ¶
func GetSchemaGPU() string
func GetSchemaHistoryCPU ¶
func GetSchemaHistoryCPU() string
func GetSchemaHistoryGPU ¶
func GetSchemaHistoryGPU() string
func GetSchemaHistoryStorage ¶
func GetSchemaHistoryStorage() string
func GetSchemaStorage ¶
func GetSchemaStorage() string
Types ¶
type Record ¶
type Record struct { RecordID int `db:"record_id" json:"record_id"` ProjectID int `db:"project_id" json:"project_id"` // BAC * 3 = 9 NumBefore int `db:"num_before" json:"num_before"` AllocInfoBefore []int64 `db:"alloc_info_before" json:"alloc_info_before"` AllocInfoBeforeStr string `db:"alloc_info_before_str" json:"alloc_info_before_str"` NumAfter int `db:"num_after" json:"num_after"` AllocInfoAfter []int64 `db:"alloc_info_after" json:"alloc_info_after"` AllocInfoAfterStr string `db:"alloc_info_after_str" json:"alloc_info_after_str"` NumChange int `db:"num_change" json:"num_change"` AllocInfoChange []int64 `db:"alloc_info_change" json:"alloc_info_change"` AllocInfoChangeStr string `db:"alloc_info_change_str" json:"alloc_info_change_str"` CtrlID int `db:"ctrl_id" json:"ctrl_id"` CtrlChineseName string `db:"ctrl_cn_name" json:"ctrl_cn_name"` CreatedAt time.Time `db:"created_at" json:"created_at"` }
Click to show internal directories.
Click to hide internal directories.