NewStrictCachingAuthorizer is mainly just for testing.
(registry prometheus.Registerer)
| 313 | |
| 314 | // NewStrictCachingAuthorizer is mainly just for testing. |
| 315 | func NewStrictCachingAuthorizer(registry prometheus.Registerer) Authorizer { |
| 316 | auth := NewAuthorizer(registry) |
| 317 | auth.strict = true |
| 318 | return Cacher(auth) |
| 319 | } |
| 320 | |
| 321 | // NewStrictAuthorizer is for testing only. It skips the caching layer, |
| 322 | // which is useful when every authorize call is unique (0% cache hit |