Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
// CreateBucket for create new folder
CreateBucket(string, string) error
// UploadFile for upload single file
UploadFile(string, string, []byte) error
// DeleteFile for delete single file
DeleteFile(string, string) error
// FilePath for store path + file name
FilePath(string, string) string
// GetFile for storage host + bucket + filename
GetFile(string, string) string
}
Storage for s3 and disk
var S3 Storage
S3 for storage interface
Click to show internal directories.
Click to hide internal directories.