(realm string, ttl time.Duration)
| 28 | ) |
| 29 | |
| 30 | func NewBasicAuthenticator(realm string, ttl time.Duration) *BasicAuthenticator { |
| 31 | ba := &BasicAuthenticator{ |
| 32 | Realm: realm, |
| 33 | TTL: ttl, |
| 34 | } |
| 35 | ba.cache = make(map[string]*validBasicUser) |
| 36 | return ba |
| 37 | } |
| 38 | |
| 39 | type validBasicUser struct { |
| 40 | Hash string |
no test coverage detected
searching dependent graphs…