Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageService ¶
type ImageService interface { Upload(ctx context.Context, file *multipart.FileHeader) (url string, err error) Download(ctx context.Context, url string) (downloadUrl string, err error) }
func NewLocalImageUploadService ¶
func NewLocalImageUploadService(location string, prefixURL string) ImageService
type LocalImageService ¶
func (*LocalImageService) Upload ¶
func (s *LocalImageService) Upload(ctx context.Context, file *multipart.FileHeader) (url string, err error)
Click to show internal directories.
Click to hide internal directories.