models

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileType

type FileType string
const (
	FileTypeImage       FileType = "image"
	FileTypeVideo       FileType = "video"
	FileTypeAudio       FileType = "audio"
	FileTypeArchive     FileType = "archive"
	FileTypeApplication FileType = "application"
	FileTypeDocument    FileType = "document"
	FileTypeOther       FileType = "other"
)

type GoeFile

type GoeFile struct {
	mongodb.DefaultModel `bson:",inline"`
	Extension            string   `json:"extension" bson:"extension"`
	Filename             string   `json:"filename" bson:"filename"`
	Hash                 string   `json:"hash" bson:"hash"`
	MimeType             string   `json:"mime_type" bson:"mime_type"`
	Size                 int64    `json:"size" bson:"size"`
	Type                 FileType `json:"type" bson:"type"`
	UploadedName         string   `json:"uploaded_name" bson:"uploaded_name"`
}

func (*GoeFile) ColName

func (u *GoeFile) ColName() string

Jump to

Keyboard shortcuts

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