Documentation ¶
Index ¶
- type QiNiu
- func (c *QiNiu) Delete(url string) (err error)
- func (c *QiNiu) GetPrivateMediaUrl(src_url string) (privateAccessURL string)
- func (c *QiNiu) GetTokenUpload(region string, key string) (m map[string]interface{})
- func (c *QiNiu) MoveFile(src_url string, dst_url string) (url_file string, err error)
- func (c *QiNiu) Refresh(url ...string) (err error)
- func (c *QiNiu) RefreshDir(dir string) (err error)
- func (c *QiNiu) Upload(localFile io.Reader, size int64, file_name string, is_refresh bool) (url_file string, err error)
- func (c *QiNiu) UploadFile(file_name string, file_data []byte) (url_file string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QiNiu ¶
type QiNiu struct { Bucket string Url string Mac *qbox.Mac CdnManager *cdn.CdnManager Config *storage.Config PutPolicy *storage.PutPolicy BucketManager *storage.BucketManager }
func (*QiNiu) GetPrivateMediaUrl ¶
返回私人有地址
func (*QiNiu) GetTokenUpload ¶
func (*QiNiu) RefreshDir ¶
Click to show internal directories.
Click to hide internal directories.