Versions in this module Expand all Collapse all v0 v0.3.3 Aug 11, 2021 Changes in this version + const Base64MinCommaIndex + const ErrFmtBadDownload + const ErrIncorrectData + const ErrNoCTypeExt + const ErrNoSingleFile + const ErrNotImage + type Config struct + Dir string + DownloadLimit int64 + PreviewDir string + PreviewHeight int + PreviewWidth int + UseRandomName bool + type HTTPError struct + func NewHTTPError(status int, err error) *HTTPError + func (e HTTPError) Status() int + type Service struct + Config *Config + Log loggers.Contextual + func New(cfg Config, log loggers.Contextual) *Service + func (srv Service) HandleBase64(data, name string) (*string, error) + func (srv Service) HandleMultiPart(form *multipart.Form) (*string, error) + func (srv Service) HandleURL(url string) (*string, error)