HandleFunc registers a handler to run when a method call is received from a Kite. It returns a *Method option to further modify certain options on a method call
(method string, handler HandlerFunc)
| 166 | // Kite. It returns a *Method option to further modify certain options on a |
| 167 | // method call |
| 168 | func (k *Kite) HandleFunc(method string, handler HandlerFunc) *Method { |
| 169 | return k.addHandle(method, handler) |
| 170 | } |
| 171 | |
| 172 | // PreHandle registers an handler which is executed before a kite.Handler |
| 173 | // method is executed. Calling PreHandle multiple times registers multiple |