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

Method HandleFunc

method.go:168–170  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

166// Kite. It returns a *Method option to further modify certain options on a
167// method call
168func (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

Callers 15

addDefaultHandlersMethod · 0.95
TestMethod_ThrottlingFunction · 0.80
TestMethod_LatestFunction · 0.80
TestMethod_FirstFunction · 0.80
TestMethod_ErrorFunction · 0.80
TestMethod_BaseFunction · 0.80
TestContextFunction · 0.80
TestMultipleFunction · 0.80
TestSendErrorFunction · 0.80
TestConcurrencyFunction · 0.80
TestKiteFunction · 0.80

Calls 1

addHandleMethod · 0.95

Tested by 15

TestMethod_ThrottlingFunction · 0.64
TestMethod_LatestFunction · 0.64
TestMethod_FirstFunction · 0.64
TestMethod_ErrorFunction · 0.64
TestMethod_BaseFunction · 0.64
TestContextFunction · 0.64
TestMultipleFunction · 0.64
TestSendErrorFunction · 0.64
TestConcurrencyFunction · 0.64
TestKiteFunction · 0.64
TestKite_MultipleDialFunction · 0.64