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

Function NewTokenRenewer

tokenrenewer.go:30–38  ·  view source on GitHub ↗
(r *Client, k *Kite)

Source from the content-addressed store, hash-verified

28}
29
30func NewTokenRenewer(r *Client, k *Kite) (*TokenRenewer, error) {
31 t := &TokenRenewer{
32 client: r,
33 localKite: k,
34 signalRenewToken: make(chan struct{}),
35 disconnect: make(chan struct{}),
36 }
37 return t, t.parse(r.Auth.Key)
38}
39
40// parse the token string and set
41func (t *TokenRenewer) parse(tokenString string) error {

Callers 1

getKitesMethod · 0.85

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected