| 755 | } |
| 756 | |
| 757 | type authCache struct { |
| 758 | // cache is a cache of hashed Authorize inputs to the result of the Authorize |
| 759 | // call. |
| 760 | // deterministic function. |
| 761 | cache *tlru.Cache[[32]byte, error] |
| 762 | |
| 763 | authz Authorizer |
| 764 | } |
| 765 | |
| 766 | // Cacher returns an Authorizer that can use a cache to short circuit duplicate |
| 767 | // calls to the Authorizer. This is useful when multiple calls are made to the |
nothing calls this directly
no outgoing calls
no test coverage detected