Documentation
¶
Overview ¶
TODO: move this into root package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFastFileSystem ¶ added in v0.0.5
func NewFastFileSystem(withOptions ...FastFileSystemOption) (_ http.Handler, err error)
Types ¶
type FastFileSystemFile ¶ added in v0.0.10
type FastFileSystemFile struct {
// contains filtered or unexported fields
}
func NewFastFileSystemFile ¶ added in v0.0.5
func NewFastFileSystemFile(contents []byte) *FastFileSystemFile
NewFastFileSystemFile serves a single file from memory without logging.
func (*FastFileSystemFile) HandleError ¶ added in v0.0.10
func (f *FastFileSystemFile) HandleError( w http.ResponseWriter, r *http.Request, err error, ) error
func (*FastFileSystemFile) ServeHTTP ¶ added in v0.0.10
func (f *FastFileSystemFile) ServeHTTP( w http.ResponseWriter, r *http.Request, )
type FastFileSystemOption ¶ added in v0.0.5
type FastFileSystemOption func(*fastFileSystemOptions) error
func WithDefaultFastFileSystemFallthrough ¶ added in v0.0.10
func WithDefaultFastFileSystemFallthrough() FastFileSystemOption
func WithFastFileSystemFallthrough ¶ added in v0.0.10
func WithFastFileSystemFallthrough(h http.Handler) FastFileSystemOption
func WithFastFileSystemFile ¶ added in v0.0.5
func WithFastFileSystemFile( path string, contents []byte, ) FastFileSystemOption
type Option ¶
type Option func(*options) error
func WithDirectory ¶
func WithFileSystem ¶
func WithPathTranslators ¶
func WithPathTranslators(ts ...PathTranslator) Option
Click to show internal directories.
Click to hide internal directories.