Documentation ¶
Overview ¶
Package external is the implementation for accessing external services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Downloader ¶
type S3Downloader struct {
*s3manager.Downloader
}
S3Downloader is an implementation for FileDownloader.
func NewS3Downloader ¶
func NewS3Downloader(config config.S3) *S3Downloader
NewS3Downloader returns a new S3Downloader struct.
func (*S3Downloader) DownloadFile ¶
func (s *S3Downloader) DownloadFile(_ context.Context, input *service.FileDownloderInput) (*service.FileDownloderOutput, error)
DownloadFile downloads a file from S3.
type S3Uploader ¶
S3Uploader is an implementation for FileUploader.
func NewS3Uploader ¶
func NewS3Uploader(config config.S3) *S3Uploader
NewS3Uploader returns a new S3Uploader struct.
func (*S3Uploader) UploadFile ¶
func (s *S3Uploader) UploadFile(_ context.Context, input *service.FileUploaderInput) (*service.FileUploaderOutput, error)
UploadFile uploads a file to S3.
Click to show internal directories.
Click to hide internal directories.