handlers

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(inner http.Handler) http.Handler

Debug returns a debug handler

func Export

func Export(dataSources db.DataSources) func(w http.ResponseWriter, r *http.Request)

Export returns an handler that exports data in CSV format

func Log

func Log(inner http.Handler) http.Handler

Log returns an handler that logs requests

func QueryEvaluator

func QueryEvaluator(w http.ResponseWriter, r *http.Request)

QueryEvaluator analyzes queries typed in the UI application

func Static

func Static() func(w http.ResponseWriter, r *http.Request)

Static handles the requests for the static assets

func UI

func UI(port int) func(w http.ResponseWriter, r *http.Request)

UI handles the requests for the UI application

Types

type QueryEvaluatorPayload

type QueryEvaluatorPayload struct {
	Query     string     `json:"query"`
	Variables []Variable `json:"variables"`
}

type QueryPayload

type QueryPayload struct {
	Source string `json:"source"`
	Query  string `json:"query"`
}

type Variable

type Variable struct {
	Name           string `json:"name"`
	Value          string `json:"value"`
	IsControllable bool   `json:"isControllable"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL