Documentation ¶
Index ¶
- func WithBucket(bucket string) option
- func WithChunkSize(chunkSize int) option
- func WithDebug(debug bool) option
- func WithFilePath(filePath string) option
- func WithImgUrl(imgUrl string) option
- func WithIsDelLocal(isDelLocal bool) option
- func WithKey(accessKey, secretKey string) option
- func WithServerPath(serverPath string) option
- func WithUseCdnDomains(useCdnDomains bool) option
- func WithUseHTTPS(useHTTPS bool) option
- func WithZone(zone *storage.Zone) option
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBucket ¶
func WithBucket(bucket string) option
func WithChunkSize ¶ added in v0.7.6
func WithChunkSize(chunkSize int) option
func WithFilePath ¶
func WithFilePath(filePath string) option
func WithImgUrl ¶
func WithImgUrl(imgUrl string) option
func WithIsDelLocal ¶
func WithIsDelLocal(isDelLocal bool) option
func WithServerPath ¶ added in v0.6.3
func WithServerPath(serverPath string) option
func WithUseCdnDomains ¶ added in v0.7.6
func WithUseCdnDomains(useCdnDomains bool) option
func WithUseHTTPS ¶ added in v0.7.6
func WithUseHTTPS(useHTTPS bool) option
Types ¶
type File ¶
type File struct { qiniux.Qiniu Bucket string // 空间名 ImgUrl string // cdn域名 ServerPath string // 服务器文件路径 // contains filtered or unexported fields }
func (*File) SetFileName ¶
func (*File) SetFilePath ¶
func (*File) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.