external

package
v0.0.0-...-e8fae58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 8 Imported by: 0

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

DownloadFile downloads a file from S3.

type S3Uploader

type S3Uploader struct {
	*s3manager.Uploader
}

S3Uploader is an implementation for FileUploader.

func NewS3Uploader

func NewS3Uploader(config config.S3) *S3Uploader

NewS3Uploader returns a new S3Uploader struct.

func (*S3Uploader) UploadFile

UploadFile uploads a file to S3.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL