We can create a S3Store (or another name) like FileSystemStore in the saver.go file.
like,
package baraka
type S3Store struct {
// specific settings
}
func NewS3Store(/* specific settings */) S3Store {
return S3Store{
// specific settings
}
}
func (s S3Store) Save(path string, filename string, part *Part) error {
// specific things to upload part's bytes to the s3
}
so, we can easily upload the files to the s3 with this implementation.
We can create a
S3Store(or another name) likeFileSystemStorein the saver.go file.like,
so, we can easily upload the files to the s3 with this implementation.