MCPcopy Create free account
hub / github.com/boringproxy/boringproxy / GetTokenData

Method GetTokenData

database.go:187–198  ·  view source on GitHub ↗
(token string)

Source from the content-addressed store, hash-verified

185}
186
187func (d *Database) GetTokenData(token string) (TokenData, bool) {
188 d.mutex.Lock()
189 defer d.mutex.Unlock()
190
191 tokenData, exists := d.Tokens[token]
192
193 if !exists {
194 return TokenData{}, false
195 }
196
197 return tokenData, true
198}
199
200func (d *Database) SetTokenData(token string, tokenData TokenData) {
201 d.mutex.Lock()

Callers 7

handleTunnelsMethod · 0.80
handleUsersMethod · 0.80
handleTokensMethod · 0.80
handleClientsMethod · 0.80
DeleteTokenMethod · 0.80
AuthorizedMethod · 0.80
handleWebUiRequestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected