qiniu

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Qiniu

type Qiniu struct {
	media_library.Base
}

Qiniu a struct used to upload files to Qiniu

func (Qiniu) GetURLTemplate

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

GetURLTemplate get url template

func (Qiniu) Retrieve

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

Retrieve retrieve file content with url

func (Qiniu) Store

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

Store store reader's content with url

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL