qiniu

package
v0.0.0-...-cffa11a Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QiniuUploader

type QiniuUploader struct {
	Bucket string `default:"msghub-picture"`
	// contains filtered or unexported fields
}

func NewQiniuUploader

func NewQiniuUploader(AccessKey string, SecretKey string, Bucket string) *QiniuUploader

func (*QiniuUploader) Upload

func (q *QiniuUploader) Upload(r io.Reader, size int64, key string) error

func (*QiniuUploader) UploadFile

func (q *QiniuUploader) UploadFile(fn string, key string) error

Jump to

Keyboard shortcuts

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