vfs

package
v0.0.0-...-678c32f Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 5

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