Documentation
¶
Index ¶
- Variables
- func NewCacheUploader(uploader contracts.Uploader, cache func() contracts.CacheInterface) contracts.Uploader
- func NewFileInfo[T uint64 | int64 | int](path string, size T, lastModified time.Time) *fileInfo
- func NewS3(client *minio.Client, bucket string, uploader contracts.Uploader, ...) contracts.Uploader
- func NewUploader(rootDir string, disk string) (contracts.Uploader, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRootDir = "/tmp/mars-uploads"
View Source
var DirSizeCacheSeconds = int((15 * time.Minute).Seconds())
Functions ¶
func NewCacheUploader ¶ added in v4.20.8
func NewFileInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.