qiniu

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL