Documentation ¶
Index ¶
- func AuthenticatedRouter(db *database.Queries, ...) func(r chi.Router)
- func MethodSpoofing(next http.Handler) http.Handler
- func NewValidator(valueOf func(string) string) *validator
- func Router(isDevMode bool, cookieKey []byte, baseURL string, oidc auth.OIDC, ...) (*chi.Mux, error)
- type BillingInfo
- type Data
- type ErrorHandler
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticatedRouter ¶
func MethodSpoofing ¶
MethodSpoofing allows to spoof PUT, PATCH and DELETE methods from HTML forms, using the _method field.
func NewValidator ¶
Types ¶
type BillingInfo ¶
type Data ¶
type Data struct {
Yield interface{}
}
Data is the top level structure that views expect data to come in.
type ErrorHandler ¶
type ErrorHandler struct {
Debug bool
}
func (ErrorHandler) Wrap ¶
func (e ErrorHandler) Wrap(handler func(w http.ResponseWriter, r *http.Request) error) http.Handler
Wrap an http handler with an error
Click to show internal directories.
Click to hide internal directories.