Documentation ¶
Index ¶
- func BrowseHandler(w http.ResponseWriter, r *http.Request)
- func FetcherHandler(w http.ResponseWriter, r *http.Request)
- func Handler(w http.ResponseWriter, r *http.Request)
- func LogAndAddCacheControl(h http.Handler) http.Handler
- func LogDataRequest(h http.Handler) http.Handler
- func LogRequest(r *http.Request, msg string)
- func ResultToJsData(w io.Writer, json []byte)
- func SaveJSON(name string, json []byte) string
- func Serve(port int, debugpath, uipath, staticRsrcDir string, datadir string)
- type HTMLEscapeWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BrowseHandler ¶ added in v0.4.2
func BrowseHandler(w http.ResponseWriter, r *http.Request)
BrowseHandler handles listing and rendering the JSON results.
func FetcherHandler ¶
func FetcherHandler(w http.ResponseWriter, r *http.Request)
FetcherHandler is the handler for the fetcher/proxy.
func Handler ¶
func Handler(w http.ResponseWriter, r *http.Request)
Handler is the main UI handler creating the web forms and processing them.
func LogAndAddCacheControl ¶ added in v0.4.2
LogAndAddCacheControl logs the request and wrapps an HTTP handler to add a Cache-Control header for static files.
func LogDataRequest ¶ added in v0.4.2
LogDataRequest logs the data request.
func LogRequest ¶
LogRequest logs the incoming request, including headers when loglevel is verbose
func ResultToJsData ¶ added in v0.4.2
ResultToJsData converts a result object to chart data arrays and title and creates a chart from the result object
Types ¶
type HTMLEscapeWriter ¶ added in v0.4.2
HTMLEscapeWriter is an io.Writer escaping the output for safe html inclusion.
Click to show internal directories.
Click to hide internal directories.