TokenRenewer renews the token of a Client just before it expires.
| 18 | |
| 19 | // TokenRenewer renews the token of a Client just before it expires. |
| 20 | type TokenRenewer struct { |
| 21 | client *Client |
| 22 | localKite *Kite |
| 23 | validUntil time.Time |
| 24 | signalRenewToken chan struct{} |
| 25 | disconnect chan struct{} |
| 26 | once sync.Once // for c.installHandlers |
| 27 | renewLoopWG sync.WaitGroup |
| 28 | } |
| 29 | |
| 30 | func NewTokenRenewer(r *Client, k *Kite) (*TokenRenewer, error) { |
| 31 | t := &TokenRenewer{ |
nothing calls this directly
no outgoing calls
no test coverage detected