Documentation ¶
Index ¶
- Variables
- func AdvanceDownload(ctx echo.Context, options ...Options) (*uploadClient.Result, string, error)
- func Crop(result *uploadClient.Result, fileM *modelFile.File, reader io.Reader, ...) (string, error)
- func Download(ctx echo.Context, options ...Options) (*uploadClient.Result, string, error)
- type Config
- type Options
- func OptionsCheckin(on bool) Options
- func OptionsCrop(opt *imageproxy.Options) Options
- func OptionsDisableChunk(disableChunk bool) Options
- func OptionsFileURL(fileURL string) Options
- func OptionsID(id string) Options
- func OptionsMaxMB(maxMB int64) Options
- func OptionsNoticeSender(noticeSender notice.Noticer) Options
- func OptionsPrepareData(data *uploadPrepare.PrepareData) Options
- func OptionsProgress(pro *notice.Progress) Options
- func OptionsWatermark(opt *image.WatermarkOptions) Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaxRetries = 3 RetryInterval = time.Second )
View Source
var (
Client = com.HTTPClientWithTimeout(30*time.Second, httpClientOptions.InsecureSkipVerify())
)
Functions ¶
func AdvanceDownload ¶
Types ¶
type Config ¶
type Config struct { echo.Context ID string FileURL string Checkin bool Watermark *image.WatermarkOptions Crop *imageproxy.Options PrepareData *uploadPrepare.PrepareData NoticeSender notice.Noticer Progress *notice.Progress MaxMB int64 MaxRetries int RetryInterval time.Duration DisableChunk bool }
type Options ¶
type Options func(*Config)
func OptionsCheckin ¶
func OptionsCrop ¶
func OptionsCrop(opt *imageproxy.Options) Options
func OptionsDisableChunk ¶
func OptionsFileURL ¶
func OptionsMaxMB ¶
func OptionsNoticeSender ¶
func OptionsPrepareData ¶
func OptionsPrepareData(data *uploadPrepare.PrepareData) Options
func OptionsProgress ¶
func OptionsWatermark ¶
func OptionsWatermark(opt *image.WatermarkOptions) Options
Click to show internal directories.
Click to hide internal directories.