Versions in this module Expand all Collapse all v0 v0.8.1 May 23, 2023 Changes in this version + func CORS(h http.Handler) http.Handler + func HandleHealth(w http.ResponseWriter, r *http.Request) + func HandlePreflight(w http.ResponseWriter, r *http.Request) + func LogRequest(handler http.Handler) http.Handler + func ParseJSONToQuadList(jsonBody []byte) (out []quad.Quad, _ error) + func SetupRoutes(handle *graph.Handle, cfg *Config) error + func WriteError(w io.Writer, err error) error + func WriteResult(w io.Writer, result interface{}) error + type API struct + func (api *API) APIv1(r *httprouter.Router) + func (api *API) GetHandleForRequest(r *http.Request) (*graph.Handle, error) + func (api *API) RWOnly(handler httprouter.Handle) httprouter.Handle + func (api *API) ServeV1Delete(w http.ResponseWriter, r *http.Request, params httprouter.Params) + func (api *API) ServeV1Query(w http.ResponseWriter, r *http.Request, params httprouter.Params) + func (api *API) ServeV1Shape(w http.ResponseWriter, r *http.Request, params httprouter.Params) + func (api *API) ServeV1Write(w http.ResponseWriter, r *http.Request, _ httprouter.Params) + func (api *API) ServeV1WriteNQuad(w http.ResponseWriter, r *http.Request, params httprouter.Params) + type Config struct + Batch int + ReadOnly bool + Timeout time.Duration + type ErrorQueryWrapper struct + Error string + type SuccessQueryWrapper struct + Result interface{}