local

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocal

func NewLocal(opts ...Option) storage.Storage

Types

type Local

type Local struct {
	// contains filtered or unexported fields
}

func (*Local) Delete

func (l *Local) Delete(key string) error

DeleteFile 删除文件

func (*Local) String

func (l *Local) String() string

func (*Local) Upload

func (l *Local) Upload(file *multipart.FileHeader, work ...string) (*storage.Resource, error)

UploadFile 上传文件

type Option

type Option func(*Options)

type Options

type Options struct {
	Path string
}

Jump to

Keyboard shortcuts

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