fio

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFile

type IFile interface {
	io.Reader
	io.Writer
	io.Closer
}

type IFileSystem

type IFileSystem interface {
	Open(name string) (io.ReadCloser, error)
	OpenFile(name string) (IFile, error)
	Stat(name string) (os.FileInfo, error)
	Remove(name string) error
}
var (
	// 默认使用本地文件系统(以后需要被 minio相关实现覆盖)
	FileSystem IFileSystem = &_localFileSystem{
		basePath: "/files/",
	}

	// 临时文件默认使用本地文件系统
	TmpFileSystem IFileSystem = &_localFileSystem{
		basePath: "/tmp/",
	}
)

Jump to

Keyboard shortcuts

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