vfs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFS

func RegisterFS(fs http.FileSystem)

func VFS

func VFS() http.FileSystem

Types

type StaticFS

type StaticFS struct {
	StaticFolder    string
	TrimLeftPath    string
	CheckLocalFirst bool
	// contains filtered or unexported fields
}

func (StaticFS) Open

func (fs StaticFS) Open(name string) (http.File, error)

type VDirectory

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

func (VDirectory) Open

func (dir VDirectory) Open(name string) (http.File, error)

type VFile

type VFile struct {
	Compressed string
	FileSize   int64
	ModifyTime int64
	IsFolder   bool

	Data     []byte
	FileName string
}

func (*VFile) Close

func (f *VFile) Close() error

func (*VFile) File

func (f *VFile) File() (http.File, error)

func (*VFile) IsDir

func (f *VFile) IsDir() bool

func (*VFile) ModTime

func (f *VFile) ModTime() time.Time

func (*VFile) Mode

func (f *VFile) Mode() os.FileMode

func (*VFile) Name

func (f *VFile) Name() string

func (*VFile) Readdir

func (f *VFile) Readdir(count int) ([]os.FileInfo, error)

func (*VFile) Size

func (f *VFile) Size() int64

func (*VFile) Stat

func (f *VFile) Stat() (os.FileInfo, error)

func (*VFile) Sys

func (f *VFile) Sys() interface{}

type VirtualFS

type VirtualFS struct{}

func (VirtualFS) Open

func (VirtualFS) Open(name string) (http.File, error)

Jump to

Keyboard shortcuts

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