oss

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileUpload

type FileUpload interface {
	FilePathAndName(dirs ...string) string
	RangeFileName() string
	RandString(len int) string
	RandomInt(start int, end int) int
	OssClient() (*oss.Bucket, error)
	OssUpload(path string, byt []byte) (string, error)
	UploadFileByUrl(imageArr []string) ([]*UploadResonse, error)
	UploadFileByByte(byt [][]byte) ([]*UploadResonse, error)
	SetExt(byt string)
}

func NewUploadFile

func NewUploadFile() FileUpload

*@Author Administrator *@Date 26/4/2021 16:29 *@desc

type UploadResonse

type UploadResonse struct {
	OldUrl string
	NewUrl string
	Error  error
}

Jump to

Keyboard shortcuts

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