Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFileDownloader ¶
func RegisterFileDownloader(route gin.IRouter, storage storage.Storage, options ...DownloaderOption)
func RegisterFormFileUploader ¶
func RegisterFormFileUploader(route gin.IRouter, storage storage.Storage, keyBuilder FileKeyBuilder, options ...UploadOption)
Types ¶
type DownloaderOption ¶
type DownloaderOption func(o *downloaderOptions)
func WithCacheControl ¶
func WithCacheControl(maxAge uint64) DownloaderOption
type S3Adapter ¶
func NewS3Adapter ¶
func (*S3Adapter) GenerateUploadToken ¶
func (*S3Adapter) RegisterFileDownloader ¶
func (a *S3Adapter) RegisterFileDownloader(route gin.IRouter, options ...DownloaderOption)
func (*S3Adapter) RegisterPutFileUploader ¶
func (a *S3Adapter) RegisterPutFileUploader(route gin.IRouter, options ...UploadOption)
type UploadOption ¶
type UploadOption func(*uploadOptions)
Click to show internal directories.
Click to hide internal directories.