(ctx context.Context, rl RequestLogger)
| 190 | type logContextKey struct{} |
| 191 | |
| 192 | func WithRequestLogger(ctx context.Context, rl RequestLogger) context.Context { |
| 193 | return context.WithValue(ctx, logContextKey{}, rl) |
| 194 | } |
| 195 | |
| 196 | func RequestLoggerFromContext(ctx context.Context) RequestLogger { |
| 197 | val := ctx.Value(logContextKey{}) |
no outgoing calls