Documentation ¶
Index ¶
Constants ¶
View Source
const ( EXPIRE = 3600 SUFFIX = ".ufile.ucloud.cn" MAX_PUT_SIZE = 50 * (1 << 20) MAX_GET_SIZE = 50 * (1 << 20) PARTIAL_SIZE = 4 * (1 << 20) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalDiskStorage ¶
type LocalDiskStorage struct {
Dir string // the directory where to save binary
}
local disk storage
type StorageWrapper ¶
type StorageWrapper interface { Save([]byte, string) error // do save binary Fetch(string) ([]byte, error) }
Gerneral storage wrapper
func CreateLocalDiskStorage ¶
func CreateLocalDiskStorage(dir string) StorageWrapper
Create a LocalDiskStorage instance
func CreateUfileStorage ¶
func CreateUfileStorage(pub, pri, bun string, ucl int) StorageWrapper
type UfileStorage ¶
type UfileStorage struct { PublicKey string PrivateKey string BucketName string // contains filtered or unexported fields }
func (*UfileStorage) PrefixFileList ¶
func (s *UfileStorage) PrefixFileList(prefix string) (*fileList, error)
Click to show internal directories.
Click to hide internal directories.