MCPcopy Create free account
hub / github.com/evcc-io/evcc / cachingProxy

Struct cachingProxy

tariff/proxy_cache.go:18–29  ·  view source on GitHub ↗

cachingProxy wraps a tariff with caching

Source from the content-addressed store, hash-verified

16
17// cachingProxy wraps a tariff with caching
18type 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
31var _ api.Tariff = (*cachingProxy)(nil)
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected