v0.0.0-...-fc27e31 Latest Latest

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

Go to latest
Published: Nov 2, 2016 License: MIT Imports: 15 Imported by: 0




This section is empty.


This section is empty.


func HandleError

func HandleError(err error, w http.ResponseWriter, r *http.Request)

func RunServer

func RunServer(db types.Client, pattern, path, version string, demo bool)


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) Chart

func (handler Handler) Chart(w http.ResponseWriter, r *http.Request) error

func (Handler) DatasetAPI

func (handler Handler) DatasetAPI(w http.ResponseWriter, r *http.Request) error

func (Handler) Explore

func (handler Handler) Explore(w http.ResponseWriter, r *http.Request) error

func (Handler) Home

func (handler Handler) Home(w http.ResponseWriter, r *http.Request) error

type Response

type Response struct {
	Title    string
	Explore  bool     // Display Data Explorer
	Browse   bool     // Display Datasets Listing
	Keys     []string // Series Keys to Display
	ChartURL string   // URL for rendering the chart
	Datasets []*types.Dataset
	Dataset  *types.Dataset
	Query    url.Values
	DemoMode bool
	Version  string

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)

Jump to

Keyboard shortcuts

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