Documentation ¶
Index ¶
- func HandleForRequest(h *graph.Handle, wtyp string, wopt graph.Options, r *http.Request) (*graph.Handle, error)
- type 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
- type HandlerWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIv2 ¶
type APIv2 struct {
// contains filtered or unexported fields
}
func NewAPIv2Writer ¶
func (*APIv2) RegisterDataOn ¶
func (api *APIv2) RegisterDataOn(r *httprouter.Router, wrappers ...HandlerWrapper)
func (*APIv2) RegisterOn ¶
func (api *APIv2) RegisterOn(r *httprouter.Router, wrappers ...HandlerWrapper)
func (*APIv2) RegisterQueryOn ¶
func (api *APIv2) RegisterQueryOn(r *httprouter.Router, wrappers ...HandlerWrapper)
func (*APIv2) ServeDelete ¶
func (api *APIv2) ServeDelete(w http.ResponseWriter, r *http.Request)
func (*APIv2) ServeFormats ¶
func (api *APIv2) ServeFormats(w http.ResponseWriter, r *http.Request)
func (*APIv2) ServeNodeDelete ¶
func (api *APIv2) ServeNodeDelete(w http.ResponseWriter, r *http.Request)
func (*APIv2) ServeQuery ¶
func (api *APIv2) ServeQuery(w http.ResponseWriter, r *http.Request)
func (*APIv2) ServeWrite ¶
func (api *APIv2) ServeWrite(w http.ResponseWriter, r *http.Request)
func (*APIv2) SetBatchSize ¶
func (*APIv2) SetQueryLimit ¶
func (*APIv2) SetQueryTimeout ¶
func (*APIv2) SetReadOnly ¶
type AcceptSpec ¶
AcceptSpec describes an Accept* header.
func ParseAccept ¶
func ParseAccept(header http.Header, key string) (specs []AcceptSpec)
ParseAccept parses Accept* headers.
type HandlerWrapper ¶
type HandlerWrapper func(httprouter.Handle) httprouter.Handle
Click to show internal directories.
Click to hide internal directories.