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

Method callOnTokenRenewHandlers

client.go:683–693  ·  view source on GitHub ↗

callOnTokenRenewHandlers calls all registered functions when we successfully obtain new token from kontrol.

(token string)

Source from the content-addressed store, hash-verified

681// callOnTokenRenewHandlers calls all registered functions when
682// we successfully obtain new token from kontrol.
683func (c *Client) callOnTokenRenewHandlers(token string) {
684 c.m.RLock()
685 defer c.m.RUnlock()
686
687 for _, handler := range c.onTokenRenewHandlers {
688 func() {
689 defer nopRecover()
690 handler(token)
691 }()
692 }
693}
694
695func (c *Client) wrapMethodArgs(args []interface{}, responseCallback dnode.Function) []interface{} {
696 options := callOptionsOut{

Callers 1

renewTokenMethod · 0.80

Calls 1

nopRecoverFunction · 0.85

Tested by

no test coverage detected