Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StorageTable is the table containing all StorageEntry entries StorageTable mongo.Collection = "storage" )
Variables ¶
View Source
var ( // StorageRepository contains the database logic for the table StorageRepository = mongo.NewRepository(StorageTable) )
Functions ¶
This section is empty.
Types ¶
type StorageEntry ¶
type StorageEntry struct { ID *objectid.ObjectID `bson:"_id,omitempty"` ObjectName string ObjectNameHash string UploadDate time.Time Filename string UserID string GuildID string ChannelID string Source string MimeType string Filesize int // in bytes Public bool Metadata map[string]string RetrievedCount int }
StorageEntry contains information about an object stored in object storage
Click to show internal directories.
Click to hide internal directories.