uploader

package
v1.1.3-3x5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProfileUploader

type IProfileUploader interface {
	UploadProfile(target string, rs io.ReadSeeker) error
}

func GetFileSaver

func GetFileSaver() IProfileUploader

func NewNullUploader added in v1.0.19

func NewNullUploader() IProfileUploader

type PathGenerator

type PathGenerator func() string

func PathGetterWithApp

func PathGetterWithApp(app string) PathGenerator

type S3Uploader added in v1.2.2

type S3Uploader struct {
	// contains filtered or unexported fields
}

func NewUploaderWithBucket added in v1.2.2

func NewUploaderWithBucket(app, bucket string) *S3Uploader

func (*S3Uploader) Upload

func (sm *S3Uploader) Upload(target string, rs io.ReadSeeker) error

func (*S3Uploader) UploadProfile added in v1.2.2

func (sm *S3Uploader) UploadProfile(target string, rs io.ReadSeeker) error

Jump to

Keyboard shortcuts

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