Documentation ¶
Index ¶
- func CreateContext()
- func GetUpload(key hsk.Key) (hsk.Record, error)
- func GetUploadFile(key hsk.Key) (result []byte, filename string, err error)
- func GetUploads(page, pagesize int) (records.Page, error)
- func GetUploadsBySize(size int64) (records.Page, error)
- func NewBLOB(data io.Reader, purpose string) ([]byte, string, error)
- func OptimizeFor(data io.Reader, oType optimizetype.Enum) ([]byte, string, error)
- func RemoveUpload(key hsk.Key) error
- func SaveFile(b io.Reader, header *multipart.FileHeader, info InfoHead) (hsk.Key, error)
- func Shutdown()
- type InfoHead
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContext ¶
func CreateContext()
func GetUploadsBySize ¶
GetUploadsBySize returns the first 50 records larger than @size bytes.
func OptimizeFor ¶ added in v1.0.0
OptimizeFor returns the new Bytes, MIME Type and an error
func RemoveUpload ¶ added in v1.0.0
Types ¶
type InfoHead ¶ added in v1.0.0
func GetInfoHead ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.