Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMimeType ¶ added in v1.7.0
func HandleProxy ¶ added in v1.7.0
func HandleProxy(dataURL string, opts *ImgProcessOpts) (io.ReadCloser, string, error)
Types ¶
type ImgProcessOpts ¶ added in v1.10.0
func UriToImgProcessOpts ¶ added in v1.11.0
func UriToImgProcessOpts(uri string) (*ImgProcessOpts, error)
func (*ImgProcessOpts) String ¶ added in v1.10.0
func (img *ImgProcessOpts) String() string
type StorageFS ¶
func NewStorageFS ¶
func (*StorageFS) GetObjectSize ¶ added in v1.12.1
func (*StorageFS) ServeObject ¶ added in v1.12.0
func (s *StorageFS) ServeObject(bucket sst.Bucket, fpath string, opts *ImgProcessOpts) (io.ReadCloser, string, error)
type StorageMinio ¶
type StorageMinio struct {
*sst.StorageMinio
}
func NewStorageMinio ¶
func NewStorageMinio(address, user, pass string) (*StorageMinio, error)
func (*StorageMinio) GetObjectSize ¶ added in v1.12.1
func (*StorageMinio) ServeObject ¶ added in v1.12.0
func (s *StorageMinio) ServeObject(bucket sst.Bucket, fpath string, opts *ImgProcessOpts) (io.ReadCloser, string, error)
type StorageServe ¶ added in v1.12.0
type StorageServe interface { sst.ObjectStorage ServeObject(bucket sst.Bucket, fpath string, opts *ImgProcessOpts) (io.ReadCloser, string, error) GetObjectSize(bucket sst.Bucket, fpath string) (int64, error) }
Click to show internal directories.
Click to hide internal directories.