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

Method OnRegister

kite.go:327–331  ·  view source on GitHub ↗

OnRegister registers a callback which is called when a Kite registers to a Kontrol.

(handler func(*protocol.RegisterResult))

Source from the content-addressed store, hash-verified

325// OnRegister registers a callback which is called when a Kite registers
326// to a Kontrol.
327func (k *Kite) OnRegister(handler func(*protocol.RegisterResult)) {
328 k.handlersMu.Lock()
329 k.onRegisterHandlers = append(k.onRegisterHandlers, handler)
330 k.handlersMu.Unlock()
331}
332
333func (k *Kite) callOnConnectHandlers(c *Client) {
334 k.handlersMu.RLock()

Callers 5

NewWithConfigFunction · 0.95
NewClientMethod · 0.95
TestMultipleFunction · 0.80
TestWebSocketProxyFunction · 0.80
NewHelloKiteFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestMultipleFunction · 0.64
TestWebSocketProxyFunction · 0.64
NewHelloKiteFunction · 0.64