Versions in this module Expand all Collapse all v0 v0.7.0 Dec 24, 2017 Changes in this version + func HandleForRequest(h *graph.Handle, wtyp string, wopt graph.Options, r *http.Request) (*graph.Handle, error) + type APIv2 struct + func NewAPIv2(h *graph.Handle) *APIv2 + func NewAPIv2Writer(h *graph.Handle, wtype string, wopts graph.Options) *APIv2 + func (api *APIv2) RegisterDataOn(r *httprouter.Router, wrappers ...HandlerWrapper) + func (api *APIv2) RegisterOn(r *httprouter.Router, wrappers ...HandlerWrapper) + func (api *APIv2) RegisterQueryOn(r *httprouter.Router, wrappers ...HandlerWrapper) + func (api *APIv2) ServeDelete(w http.ResponseWriter, r *http.Request) + func (api *APIv2) ServeFormats(w http.ResponseWriter, r *http.Request) + func (api *APIv2) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (api *APIv2) ServeNodeDelete(w http.ResponseWriter, r *http.Request) + func (api *APIv2) ServeQuery(w http.ResponseWriter, r *http.Request) + func (api *APIv2) ServeRead(w http.ResponseWriter, r *http.Request) + func (api *APIv2) ServeWrite(w http.ResponseWriter, r *http.Request) + func (api *APIv2) SetBatchSize(n int) + func (api *APIv2) SetQueryLimit(n int) + func (api *APIv2) SetQueryTimeout(dt time.Duration) + func (api *APIv2) SetReadOnly(ro bool) + type AcceptSpec struct + Q float64 + Value string + func ParseAccept(header http.Header, key string) (specs []AcceptSpec) + type HandlerWrapper func(httprouter.Handle) httprouter.Handle