Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultIndexFilename = "index.html"
Variables ¶
This section is empty.
Functions ¶
func NewSPAHandlerFunc ¶
func NewSPAHandlerFunc(c SPASettings) http.HandlerFunc
NewSpaHandlerFunc returns new handle to serve SPA apps highly inspired by echo spa static server https://github.com/labstack/echo/blob/master/middleware/static.go#L164
Types ¶
type SPAHandlerError ¶
type SPAHandlerError struct {
// contains filtered or unexported fields
}
func (SPAHandlerError) Error ¶
func (e SPAHandlerError) Error() string
type SPASettings ¶
type SPASettings struct { Name string Root string FileSystem http.FileSystem Index string LoggerSettings model.LoggerSettings }
Click to show internal directories.
Click to hide internal directories.