Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct { Db *database.Database Config configuration.Configuration AssumeJSONContentType bool }
Factory stores repeated requirements for constructing handlers
type Func ¶
type Func func( db *database.Database, cur core.Current, vars map[string]string, w http.ResponseWriter, r *http.Request, ) error
Func is the dwn-specific signature for handler functions
type Handler ¶
type Handler struct { Handler Func // contains filtered or unexported fields }
Handler is a wrapper struct for giving HandlerFunc functionality
type Options ¶
type Options []Option
Options is a type representing multiple options and providing a Contains method.
type Status404Handler ¶ added in v0.4.0
type Status404Handler string
func (Status404Handler) ServeHTTP ¶ added in v0.4.0
func (h Status404Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.