adsa-cms: github.com/mmanjoura/adsa-cms/media_library/qiniu Index | Files

package qiniu

import "github.com/mmanjoura/adsa-cms/media_library/qiniu"

Index

Package Files

qiniu.go

Variables

var (
    Uptoken       = ""
    DownloadToken = ""
    Bucket        = ""
    EndPoint      = ""
)

type Qiniu Uses

type Qiniu struct {
    media_library.Base
}

Qiniu a struct used to upload files to Qiniu

func (Qiniu) GetURLTemplate Uses

func (q Qiniu) GetURLTemplate(option *media_library.Option) (path string)

GetURLTemplate get url template

func (Qiniu) Retrieve Uses

func (q Qiniu) Retrieve(url string) (file *os.File, err error)

Retrieve retrieve file content with url

func (Qiniu) Store Uses

func (q Qiniu) Store(url string, option *media_library.Option, reader io.Reader) (err error)

Store store reader's content with url

Package qiniu imports 10 packages (graph). Updated 2017-06-20. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).