Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UploadTask ¶
func UploadTask(taskDir string, uploader S3Uploader, sqlxDB *sqlx.DB) error
Types ¶
type S3Uploader ¶
type S3UploaderImpl ¶
type S3UploaderImpl struct {
// contains filtered or unexported fields
}
func NewS3Uploader ¶
func NewS3Uploader(accessKey, secretKey, region, endpoint, bucket string) *S3UploaderImpl
func (*S3UploaderImpl) Upload ¶
func (s *S3UploaderImpl) Upload(key string, content io.ReadSeeker) error
Click to show internal directories.
Click to hide internal directories.