(ctx context.Context)
| 109 | } |
| 110 | |
| 111 | func fetcherFromContext(ctx context.Context) (Fetcher, bool) { |
| 112 | if fetcher, ok := ctx.Value(fetcherKey).(Fetcher); ok { |
| 113 | return fetcher, true |
| 114 | } |
| 115 | return nil, false |
| 116 | } |
| 117 | |
| 118 | var errNoFetcher = errors.DefineInternal("no_fetcher", "no fetcher found in context") |
| 119 |
no test coverage detected