Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS implements https://godoc.org/net/http#FileSystem over a Tree.
type Loader ¶
Loader is a function that loads file content. If the context id done this function should return an error.
type Opener ¶
type Opener interface {
// Open returns a file/dir.
Open() http.File
// Stat returns information about the file/dir.
Stat() (os.FileInfo, error)
// Readdir retruns list of file info contained in a directory.
// Preforming Readdir on a file returns nil, nil.
Readdir(count int) ([]os.FileInfo, error)
}
Opener is an interface for a directory or a file provider.
Click to show internal directories.
Click to hide internal directories.