Documentation
¶
Index ¶
Constants ¶
View Source
const ( TableName = "file_part" KeyPrefix = TableName + "-" FilePartCacheTime = 5 // 5 day )
View Source
const FilePartMapping = `` /* 180-byte string literal not displayed */
FilePartMapping 文件分片表
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB interface {
Get(hash string) (*FilePart, error)
Set(r *RecordFilePart) error
Clean() error
}
DB operate FilePart
type FilePart ¶
type FilePart struct {
Data string `json:"data"`
TxHash string `json:"tx_hash"`
InsertTime int64 `json:"insert_time"`
}
FilePart 文件分片
type RecordFilePart ¶
RecordFilePart record
func NewRecordFilePart ¶
func NewRecordFilePart(op int, value *FilePart) *RecordFilePart
NewRecordFilePart new RecordFilePart
Click to show internal directories.
Click to hide internal directories.