leifengtrend

package
v0.0.0-...-a7b0e50 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutOSS

func PutOSS(cf *Config, obj *Object) error

PutOSS 数据上传至OSS

Types

type Config

type Config struct {
	Endpoint        string
	AccessKeyID     string
	AccessKeySecret string
	BucketName      string
}

Config OSS 配置

type Controller

type Controller struct {
}

Controller ... ctr

func (*Controller) Register

func (ctr *Controller) Register(c *gin.Context)

Register ...

type Middleware

type Middleware struct {
}

Middleware ... mid

func (*Middleware) Auth

func (mid *Middleware) Auth(c *gin.Context)

Auth ...

type Object

type Object struct {
	ObjectName    string
	LocalFileName string
}

Object string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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