Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileChunk ¶
type FileChunk struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` FileID primitive.ObjectID `json:"file_id" bson:"file_id"` Index int64 `json:"index" bson:"index"` Data string `json:"data" bson:"data"` Length int64 `json:"length" bson:"length"` OLength int64 `json:"olength" bson:"olength"` }
type FileInfo ¶
type FileInfo struct { ID primitive.ObjectID `json:"id" bson:"_id,omitempty"` Filename string `json:"filename" bson:"filename"` Description string `json:"description" bson:"description"` Chunks int64 `json:"chunks" bson:"chunks"` Bytes int64 `json:"bytes" bson:"bytes"` }
func AddFileChunks ¶
func FindFileInfo ¶
Click to show internal directories.
Click to hide internal directories.