Versions in this module Expand all Collapse all v0 v0.4.0 Aug 26, 2014 v0.3.1 Jul 31, 2014 Changes in this version + func Serve(ts graph.TripleStore, cfg *config.Config) v0.3.0 Jun 28, 2014 Changes in this version + func CayleyHTTP(ts graph.TripleStore, cfg *config.CayleyConfig) + func FormatJson400(w http.ResponseWriter, err interface{}) int + func FormatJsonError(w http.ResponseWriter, code int, err interface{}) int + func GetQueryShape(query string, ses graph.HttpSession) ([]byte, error) + func LogRequest(handler ResponseHandler) httprouter.Handle + func MarkdownWithCSS(input []byte, title string) []byte + func ParseJsonToTripleList(jsonBody []byte) ([]*graph.Triple, error) + func RunJsonQuery(query string, ses graph.HttpSession) (interface{}, error) + func SetupRoutes(ts graph.TripleStore, cfg *config.CayleyConfig) + 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) 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)