Objects implementing the Handler interface can be registered to a method. The returned result must be marshalable with json package.
| 27 | // Objects implementing the Handler interface can be registered to a method. |
| 28 | // The returned result must be marshalable with json package. |
| 29 | type Handler interface { |
| 30 | ServeKite(*Request) (result interface{}, err error) |
| 31 | } |
| 32 | |
| 33 | // HandlerFunc is a type adapter to allow the use of ordinary functions as |
| 34 | // Kite handlers. If h is a function with the appropriate signature, |
no outgoing calls
no test coverage detected