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

Method OnTokenRenew

client.go:635–639  ·  view source on GitHub ↗

OnTokenRenew adds a callback which is called when client successfully renews its token.

(handler func(token string))

Source from the content-addressed store, hash-verified

633// OnTokenRenew adds a callback which is called when client successfully
634// renews its token.
635func (c *Client) OnTokenRenew(handler func(token string)) {
636 c.m.Lock()
637 c.onTokenRenewHandlers = append(c.onTokenRenewHandlers, handler)
638 c.m.Unlock()
639}
640
641// callOnConnectHandlers runs the registered connect handlers.
642func (c *Client) callOnConnectHandlers() {

Callers 1

helloMethod · 0.80

Calls

no outgoing calls

Tested by 1

helloMethod · 0.64