file

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBucket

func WithBucket(bucket string) option

func WithFilePath

func WithFilePath(filePath string) option

func WithImgUrl

func WithImgUrl(imgUrl string) option

func WithIsDelLocal

func WithIsDelLocal(isDelLocal bool) option

func WithKey

func WithKey(accessKey, secretKey string) option

func WithZone

func WithZone(zone *storage.Zone) option

Types

type File

type File struct {
	qiniux.Qiniu
	Bucket string // 空间名
	ImgUrl string // cdn域名
	// contains filtered or unexported fields
}

func NewFile added in v0.5.1

func NewFile(opts ...option) *File

func (*File) SetFileName

func (f *File) SetFileName(fileName string)

func (*File) SetFilePath

func (f *File) SetFilePath(filePath string)

func (*File) UploadFile

func (f *File) UploadFile(file multipart.File, fileHeader *multipart.FileHeader) (string, error)

Jump to

Keyboard shortcuts

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