callOnTokenRenewHandlers calls all registered functions when we successfully obtain new token from kontrol.
(token string)
| 681 | // callOnTokenRenewHandlers calls all registered functions when |
| 682 | // we successfully obtain new token from kontrol. |
| 683 | func (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 | |
| 695 | func (c *Client) wrapMethodArgs(args []interface{}, responseCallback dnode.Function) []interface{} { |
| 696 | options := callOptionsOut{ |
no test coverage detected