Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { *standard.File Key string FS FileSystem // contains filtered or unexported fields }
File Same as fs.File, but cache contents in memory
func (File) Readdir ¶
Readdir Wrapper around fs.File.Readdir
type FileSystem ¶
FileSystem is an http.FileSystem that hides hidden "dot files" from being served.
func (FileSystem) GetCacheFallback ¶
GetCacheFallback Wrapper around bigcache.Get and Set
func (FileSystem) Open ¶
func (cfs FileSystem) Open(name string) (base.ServingFile, error)
Open is a wrapper around the Open method of the embedded FileSystem that serves a 403 permission error when name has a file or directory with whose name starts with a period in its path.
type Stat ¶
Click to show internal directories.
Click to hide internal directories.