cachingProxy wraps a tariff with caching
| 16 | |
| 17 | // cachingProxy wraps a tariff with caching |
| 18 | type cachingProxy struct { |
| 19 | mu sync.Mutex |
| 20 | hash [32]byte |
| 21 | |
| 22 | key string |
| 23 | ctx context.Context |
| 24 | typ string |
| 25 | config map[string]any |
| 26 | |
| 27 | cached *cached |
| 28 | tariff api.Tariff |
| 29 | } |
| 30 | |
| 31 | var _ api.Tariff = (*cachingProxy)(nil) |
| 32 |
nothing calls this directly
no outgoing calls
no test coverage detected