Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type File ¶
type File struct { ID string `bson:"_id" json:"_id"` FileName string `bson:"filename" json:"filename"` MediaType string `bson:"mediatype" json:"mediatype"` Created datetime.CpsTime `bson:"created,omitempty" json:"created,omitempty" swaggertype:"integer"` Storage string `bson:"storage" json:"-"` Etag string `bson:"etag" json:"-"` IsPublic bool `bson:"is_public" json:"-"` }
type Store ¶
type Store interface { Create(context.Context, bool, *multipart.Form) ([]File, error) Delete(ctx context.Context, id string) (bool, error) List(ctx context.Context, ids []string) ([]File, error) Get(ctx context.Context, id string) (*File, error) GetFilepath(model File) string }
Store interface consists of helpers for api handlers
Click to show internal directories.
Click to hide internal directories.