MCPcopy Create free account
hub / github.com/koding/kite / TokenRenewer

Struct TokenRenewer

tokenrenewer.go:20–28  ·  view source on GitHub ↗

TokenRenewer renews the token of a Client just before it expires.

Source from the content-addressed store, hash-verified

18
19// TokenRenewer renews the token of a Client just before it expires.
20type 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
30func NewTokenRenewer(r *Client, k *Kite) (*TokenRenewer, error) {
31 t := &TokenRenewer{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected