Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage interface { Upload(key string, body io.ReadCloser) error Download(key string) (io.ReadCloser, error) Delete(key string) error }
Storage ...
func GetStorage ¶
func NewLocalStorage ¶
func NewS3Storage ¶
type StorageHandler ¶
StorageHandler ...
func (*StorageHandler) Delete ¶
func (h *StorageHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*StorageHandler) Download ¶
func (h *StorageHandler) Download(w http.ResponseWriter, r *http.Request)
func (*StorageHandler) Upload ¶
func (h *StorageHandler) Upload(w http.ResponseWriter, r *http.Request)
type StorageLocal ¶
type StorageLocal struct { }
func (*StorageLocal) Delete ¶
func (s *StorageLocal) Delete(key string) error
func (*StorageLocal) Download ¶
func (s *StorageLocal) Download(key string) (io.ReadCloser, error)
func (*StorageLocal) Upload ¶
func (s *StorageLocal) Upload(key string, body io.ReadCloser) error
Click to show internal directories.
Click to hide internal directories.