fileStorage

package
v0.0.0-...-e37a865 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageTypeOss = "oss"
	StorageTypeCos = "cos"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	FileInterface
}

type FileInterface

type FileInterface interface {
	ImgToken(bucket, key string) (interface{}, error) // 获取上传凭证
	ImgUrl(bucket, key string) string                 // 获取图片地址
}

func Make

func Make(uploadChannel, conf interface{}) FileInterface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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