models

package
v0.0.0-...-905ac89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 3 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL