Versions in this module Expand all Collapse all v0 v0.5.0 Mar 23, 2016 Changes in this version + func GetQueryShape(q string, ses query.HTTP) ([]byte, error) + func LogRequest(handler ResponseHandler) httprouter.Handle + func MarkdownWithCSS(input []byte, title string) []byte + func ParseJSONToQuadList(jsonBody []byte) ([]quad.Quad, error) + func Run(q string, ses query.HTTP) (interface{}, error) + func Serve(handle *graph.Handle, cfg *config.Config) + func SetupRoutes(handle *graph.Handle, cfg *config.Config) + func WrapErrResult(err error) ([]byte, error) + func WrapResult(result interface{}) ([]byte, error) + type API struct + func (api *API) APIv1(r *httprouter.Router) + func (api *API) GetHandleForRequest(r *http.Request) (*graph.Handle, error) + func (api *API) ServeV1Delete(w http.ResponseWriter, r *http.Request, params httprouter.Params) int + func (api *API) ServeV1Query(w http.ResponseWriter, r *http.Request, params httprouter.Params) int + func (api *API) ServeV1Shape(w http.ResponseWriter, r *http.Request, params httprouter.Params) int + func (api *API) ServeV1Write(w http.ResponseWriter, r *http.Request, _ httprouter.Params) int + func (api *API) ServeV1WriteNQuad(w http.ResponseWriter, r *http.Request, params httprouter.Params) int + type DocRequestHandler struct + func (h *DocRequestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request, params httprouter.Params) + type ErrorQueryWrapper struct + Error string + type ResponseHandler func(http.ResponseWriter, *http.Request, httprouter.Params) int + type SuccessQueryWrapper struct + Result interface{} + type TemplateRequestHandler struct + func (h *TemplateRequestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request, params httprouter.Params)