MCPcopy Index your code
hub / github.com/koding/kite / HandlerFunc

FuncType HandlerFunc

method.go:36–36  ·  view source on GitHub ↗

HandlerFunc is a type adapter to allow the use of ordinary functions as Kite handlers. If h is a function with the appropriate signature, HandlerFunc(h) is a Handler object that calls h.

func(*Request) (result interface{}, err error)

Source from the content-addressed store, hash-verified

34// Kite handlers. If h is a function with the appropriate signature,
35// HandlerFunc(h) is a Handler object that calls h.
36type HandlerFunc func(*Request) (result interface{}, err error)
37
38// ServeKite calls h(r)
39func (h HandlerFunc) ServeKite(r *Request) (interface{}, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected