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
Click to show internal directories.
Click to hide internal directories.