vfs

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	io.Reader
	io.Seeker
	io.Closer
}

File represents an open file, which will typically be the response body of a Pages request.

type Root added in v1.24.0

type Root interface {
	Lstat(ctx context.Context, name string) (os.FileInfo, error)
	Readlink(ctx context.Context, name string) (string, error)
	Open(ctx context.Context, name string) (File, error)
}

Root abstracts the things Pages needs to serve a static site from a given root rootPath.

type VFS

type VFS interface {
	Root(ctx context.Context, path string) (Root, error)
}

VFS abstracts the things Pages needs to serve a static site from disk.

func Instrumented

func Instrumented(fs VFS, name string) VFS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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