Documentation
¶
Index ¶
- func HandleForRequest(h *graph.Handle, wtyp string, wopt graph.Options, r *http.Request) (*graph.Handle, error)
- type APIv2
- 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 NewAPIv2 ¶
func NewAPIv2(h *graph.Handle, wrappers ...HandlerWrapper) *APIv2
NewAPIv2 creates a new instance of APIv2 with default options
func NewAPIv2Writer ¶
func NewAPIv2Writer(h *graph.Handle, wtype string, wopts graph.Options, wrappers ...HandlerWrapper) *APIv2
NewAPIv2Writer creates a new instance of APIv2
func NewBoundAPIv2 ¶ added in v0.7.8
func NewBoundAPIv2(h *graph.Handle, r *httprouter.Router) *APIv2
NewBoundAPIv2 creates a new instance of APIv2 bound to a given httprouter.Router
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.
Click to show internal directories.
Click to hide internal directories.