Documentation ¶
Index ¶
- func HandleError(err error, w http.ResponseWriter, r *http.Request)
- func RunServer(db types.Client, pattern, path, version string, demo bool)
- type ErrorHandler
- type Handler
- func (handler Handler) Chart(w http.ResponseWriter, r *http.Request) error
- func (handler Handler) DatasetAPI(w http.ResponseWriter, r *http.Request) error
- func (handler Handler) Explore(w http.ResponseWriter, r *http.Request) error
- func (handler Handler) Home(w http.ResponseWriter, r *http.Request) error
- type Response
- type StaticHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(err error, w http.ResponseWriter, r *http.Request)
Types ¶
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, *http.Request) error
func (ErrorHandler) ServeHTTP ¶
func (fn ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (Handler) DatasetAPI ¶
type StaticHandler ¶
type StaticHandler struct { Path string // Path to static assets directory Allowed []string // Array of allowed directories }
func (StaticHandler) ServeHTTP ¶
func (handler StaticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.