A Getter loads data for a key.
| 39 | |
| 40 | // A Getter loads data for a key. |
| 41 | type Getter interface { |
| 42 | // Get returns the value identified by key, populating dest. |
| 43 | // |
| 44 | // The returned data must be unversioned. That is, key must |
| 45 | // uniquely describe the loaded data, without an implicit |
| 46 | // current time, and without relying on cache expiration |
| 47 | // mechanisms. |
| 48 | Get(ctx context.Context, key string, dest Sink) error |
| 49 | } |
| 50 | |
| 51 | // A GetterFunc implements Getter with a function. |
| 52 | type GetterFunc func(ctx context.Context, key string, dest Sink) error |
no outgoing calls
no test coverage detected
searching dependent graphs…