Documentation ¶
Index ¶
Constants ¶
View Source
const ( Local string = "local" Facebook string = "facebook" )
AuthType values.
View Source
const ( ImageGif string = "image/gif" ImageJpeg string = "image/jpeg" ImagePng string = "image/png" )
Content types
View Source
const ( Small string = "small" Medium string = "medium" Large string = "large" Original string = "" )
Image sizes
View Source
const (
ItemResource string = "item"
)
ResourceType values.
Variables ¶
This section is empty.
Functions ¶
func IsImageContentType ¶ added in v0.2.0
IsImageContentType .
Types ¶
type Auth ¶ added in v0.2.0
type Auth struct { database.BasicEntity `bson:",inline"` UserID objectid.ObjectID `bson:"_user_id"` Type string `bson:"type"` AccessToken string `bson:"access_token"` Expires time.Time `bson:"expires"` }
Auth .
type Collection ¶
type Collection struct { database.BasicEntity `bson:",inline"` UserID objectid.ObjectID `bson:"_user_id" json:"-"` Name string `bson:"name" json:"name"` Slug string `bson:"slug" json:"slug"` }
Collection .
type File ¶
type File struct { database.BasicEntity `bson:",inline"` ResourceType string `bson:"resource_type"` ResourceID objectid.ObjectID `bson:"_resource_id"` Name string `bson:"name"` Path string `bson:"path"` Size int64 `bson:"size"` ContentType string `bson:"content_type"` }
File .
Click to show internal directories.
Click to hide internal directories.