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)
| 34 | // Kite handlers. If h is a function with the appropriate signature, |
| 35 | // HandlerFunc(h) is a Handler object that calls h. |
| 36 | type HandlerFunc func(*Request) (result interface{}, err error) |
| 37 | |
| 38 | // ServeKite calls h(r) |
| 39 | func (h HandlerFunc) ServeKite(r *Request) (interface{}, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected