storage

package
v0.0.0-demo Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3BucketStorage

type S3BucketStorage struct {
	Uploader     *s3manager.Uploader
	S3BucketName string
}

S3BucketStorage provides file storage using an S3 bucket

func (*S3BucketStorage) UploadFile

func (d *S3BucketStorage) UploadFile(id string, file *uploaded.File) (*string, error)

UploadFile stores a file into S3

type Storage

type Storage interface {
	UploadFile(id string, file *uploaded.File) (*string, error)
}

Storage the interface for file storage

Jump to

Keyboard shortcuts

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