oss

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aliyun

type Aliyun struct {
	EndPoint     string
	AccessId     string
	AccessSecret string
	BucketName   string
	// contains filtered or unexported fields
}

func (*Aliyun) Upload

func (a *Aliyun) Upload(file []byte, filename string) (string, error)

type IOss

type IOss interface {
	IUpload
}

IOss oss接口

func Factory

func Factory(name Type) IOss

Factory 根据name获取oss

type IUpload

type IUpload interface {
	Upload(file []byte, filename string) (string, error)
}

IUpload 上传接口

type Type

type Type string
const (
	AliyunOssType Type = "aliyun"
)

Jump to

Keyboard shortcuts

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