qiniu

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ak            string // 七牛云ak
	Sk            string // 七牛云sk
	COSBucketName string // 七牛云对象存储桶名
	COSDomain     string // 七牛云对象存储资源访问域名
}

七牛云配置对象,以下任何一项为空时,都会尝试取配置文件中的配置,如果配置文件没配置会采用代码中写的默认配置值

type Proxy

type Proxy struct {
	Config
}

func NewProxy

func NewProxy(config *Config) *Proxy

func (*Proxy) PutFile

func (p *Proxy) PutFile(ctxt context.Context, localFileName string) (string, error)

七牛云对象存储上传文件

Jump to

Keyboard shortcuts

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