uploader

package
v4.20.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRootDir = "/tmp/mars-uploads"

Functions

func NewFileInfo

func NewFileInfo[T uint64 | int64 | int](path string, size T, lastModified time.Time) *fileInfo

func NewS3

func NewS3(client *minio.Client, bucket string, uploader contracts.Uploader, rootDir string) contracts.Uploader

NewS3 rootDir 必须要,不然在 DeleteDir 的时候如果传空会报错

func NewUploader

func NewUploader(rootDir string, disk string) (contracts.Uploader, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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