Versions in this module Expand all Collapse all v0 v0.8.0 Jun 12, 2016 Changes in this version + type Driver interface + Delete func(filePath string) error + DeleteAll func(dirPath string) error + List func(dirPath string) ([]FileInfo, error) + Save func(filePath string, data []byte) error + type FileInfo struct + Name string + ThumbnailURL string + URL string + type FileSystemDriver struct + func NewFileSystemDriver(cfg *conf.Config) FileSystemDriver + func (u FileSystemDriver) Delete(filePath string) error + func (u FileSystemDriver) DeleteAll(dirPath string) error + func (u FileSystemDriver) List(dirPath string) ([]FileInfo, error) + func (u FileSystemDriver) Save(filePath string, data []byte) error + type S3Driver struct + func NewS3Driver(cfg *conf.Config) S3Driver + func (u S3Driver) Delete(key string) error + func (u S3Driver) DeleteAll(keyPrefix string) error + func (u S3Driver) List(keyPrefix string) ([]FileInfo, error) + func (u S3Driver) Save(filePath string, data []byte) error + type S3Static struct + Prefix string + func NewS3Static(cfg *conf.Config) *S3Static + func (s *S3Static) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) Other modules containing this package gopkg.in/chadweimer/gomp.v1 gopkg.in/chadweimer/gomp.v2