Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MiddlewareLog ¶
func MiddlewareLog(next http.HandlerFunc, logger Logger) http.HandlerFunc
MiddlewareLog writes a log message for
Types ¶
type FileSystems ¶
type FileSystems []http.FileSystem
FileSystems is a wrapper for multiple http.FileSystem
type Logger ¶
type Logger struct {
Writter Writter
Formatter func(Log) []byte
ShouldPool bool
SpoolTriggerSeverity Severity
// contains filtered or unexported fields
}
Logger writes log messages to a buffer
type ReaderWritter ¶
ReaderWritter allows something to be read or written
type SPA ¶
type SPA struct {
FileSystem http.FileSystem
Index string
// contains filtered or unexported fields
}
SPA is an http.Handler that serves static files from a http.FileSystem. If a static file can not be found, the index file is served.
Click to show internal directories.
Click to hide internal directories.