Documentation ¶
Overview ¶
Code generated by fassify DO NOT EDIT
Index ¶
- func Validate[IN any, OUT any](fn http.HandlerFunc, name string, req IN, cfg *config.Config) (res OUT, err error)
- func WithAuthentication(cfg *config.Config, next http.HandlerFunc) http.HandlerFunc
- func WithEmbeddedFiles(efs embed.FS, prefix string) http.HandlerFunc
- func WithLogging(next http.HandlerFunc) http.HandlerFunc
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶ added in v0.0.10
func Validate[IN any, OUT any](fn http.HandlerFunc, name string, req IN, cfg *config.Config) (res OUT, err error)
Validate is a generic function to test a handler function.
func WithAuthentication ¶
func WithAuthentication(cfg *config.Config, next http.HandlerFunc) http.HandlerFunc
WithAuthentication checks for a valid token
func WithEmbeddedFiles ¶ added in v0.0.2
func WithEmbeddedFiles(efs embed.FS, prefix string) http.HandlerFunc
WithEmbeddedFiles serves files from the embedded file system
func WithLogging ¶
func WithLogging(next http.HandlerFunc) http.HandlerFunc
WithLogging logs the current request to the terminal
Types ¶
type Manager ¶ added in v0.0.8
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v0.0.8
func (*Manager) ListenAndServe ¶ added in v0.0.8
func (a *Manager) ListenAndServe()
Click to show internal directories.
Click to hide internal directories.