Documentation
¶
Index ¶
- func Dist(h http.Handler, c Conf) http.Handler
- func Fonts(h http.Handler, c Conf) http.Handler
- func SetupApp(Commit, Tag string)
- func SetupMetrics(c Conf) *chi.Mux
- func SetupRouter(c Conf, cache *cache.Cache, Commit, Tag string) *chi.Mux
- func SpaHandler(fileSystem fs.FS, c Conf) http.HandlerFunc
- func Static(h http.Handler, c Conf) http.Handler
- type Conf
- type Middleware
- type UserCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupMetrics ¶
func SpaHandler ¶ added in v0.0.4
func SpaHandler(fileSystem fs.FS, c Conf) http.HandlerFunc
SpaHandler serves the SPA, handling assets, specific index files, and the root fallback.
Types ¶
type Middleware ¶
type Middleware func(http.HandlerFunc) http.HandlerFunc
type UserCredentials ¶
type UserCredentials = types.UserCredentials
Click to show internal directories.
Click to hide internal directories.