(id uint)
| 77 | } |
| 78 | |
| 79 | func (g *CredentialCache) GetCredentials(id uint) (params.ForgeCredentials, bool) { |
| 80 | g.mux.Lock() |
| 81 | defer g.mux.Unlock() |
| 82 | |
| 83 | if creds, ok := g.cache[id]; ok { |
| 84 | return creds, true |
| 85 | } |
| 86 | return params.ForgeCredentials{}, false |
| 87 | } |
| 88 | |
| 89 | func (g *CredentialCache) DeleteCredentials(id uint) { |
| 90 | g.mux.Lock() |