func context.WithValue
46 uses
context (current package)
context.go#L519: func WithValue(parent Context, key, val interface{}) Context {
github.com/jackc/pgx/v4/stdlib
sql.go#L753: ctx := context.WithValue(context.Background(), ctxKeyFakeTx, &conn)
go.opencensus.io/plugin/ocgrpc
client_stats_handler.go#L48: return context.WithValue(ctx, rpcDataKey, d)
server_stats_handler.go#L45: return context.WithValue(ctx, rpcDataKey, d)
go.opencensus.io/plugin/ochttp
server.go#L91: r = r.WithContext(context.WithValue(r.Context(), addedTagsKey{}, &tags))
go.opencensus.io/tag
context.go#L38: return context.WithValue(ctx, mapCtxKey, m)
go.opencensus.io/trace
trace.go#L119: return context.WithValue(parent, contextKey{}, s)
go.opentelemetry.io/otel/api/correlation
context.go#L99: return context.WithValue(ctx, correlationsKey, v.m)
context.go#L101: return context.WithValue(ctx, correlationsKey, v)
context.go#L116: return context.WithValue(ctx, correlationsKey, d)
context.go#L130: return context.WithValue(ctx, correlationsKey, v.m), v.setHook, v.getHook
context.go#L141: ctx = context.WithValue(ctx, correlationsKey, v)
context.go#L147: return context.WithValue(ctx, correlationsKey, m)
go.opentelemetry.io/otel/api/trace
context.go#L31: return context.WithValue(ctx, currentSpanKey, span)
context.go#L45: return context.WithValue(ctx, remoteContextKey, sc)
trace_context_propagator.go#L72: ctx = context.WithValue(ctx, tracestateKey, state)
golang.org/x/net/context
go17.go#L72: return context.WithValue(parent, key, val)
golang.org/x/net/http2
server.go#L477: ctx = context.WithValue(ctx, http.LocalAddrContextKey, c.LocalAddr())
server.go#L479: ctx = context.WithValue(ctx, http.ServerContextKey, hs)
golang.org/x/net/trace
trace.go#L137: return context.WithValue(ctx, contextKey, tr)
golang.org/x/pkgsite/internal/experiment
experiment.go#L48: return context.WithValue(ctx, contextKey{}, NewSet(experimentNames...))
golang.org/x/pkgsite/internal/log
log.go#L57: return context.WithValue(ctx, traceIDKey{}, traceID)
log.go#L70: return context.WithValue(ctx, labelsKey{}, newLabels)
golang.org/x/pkgsite/internal/middleware
stats.go#L25: ctx := context.WithValue(r.Context(), statsKey{}, sw.stats.Other)
google.golang.org/grpc
rpc_util.go#L735: return context.WithValue(ctx, rpcInfoContextKey{}, &rpcInfo{
server.go#L1560: return context.WithValue(ctx, streamKey{}, stream)
google.golang.org/grpc/credentials
credentials.go#L255: return context.WithValue(ctx, requestInfoKey{}, ri)
credentials.go#L258: return context.WithValue(ctx, clientHandshakeInfoKey{}, chi)
google.golang.org/grpc/internal/grpcutil
metadata.go#L31: return context.WithValue(ctx, mdExtraKey{}, md)
google.golang.org/grpc/metadata
metadata.go#L141: return context.WithValue(ctx, mdIncomingKey{}, md)
metadata.go#L148: return context.WithValue(ctx, mdOutgoingKey{}, rawMD{md: md})
metadata.go#L163: return context.WithValue(ctx, mdOutgoingKey{}, rawMD{md: md.md, added: added})
google.golang.org/grpc/peer
peer.go#L44: return context.WithValue(ctx, peerKey{}, p)
google.golang.org/grpc/stats
stats.go#L244: return context.WithValue(ctx, outgoingTagsKey{}, b)
stats.go#L263: return context.WithValue(ctx, incomingTagsKey{}, b)
stats.go#L286: return context.WithValue(ctx, outgoingTraceKey{}, b)
stats.go#L304: return context.WithValue(ctx, incomingTraceKey{}, b)
net
dial.go#L400: resolveCtx = context.WithValue(resolveCtx, nettrace.TraceKey{}, &shadow)
net/http
h2_bundle.go#L4043: ctx = context.WithValue(ctx, LocalAddrContextKey, c.LocalAddr())
h2_bundle.go#L4045: ctx = context.WithValue(ctx, ServerContextKey, hs)
server.go#L1819: ctx = context.WithValue(ctx, LocalAddrContextKey, c.rwc.LocalAddr())
server.go#L2979: ctx := context.WithValue(baseCtx, ServerContextKey, srv)
net/http/httptrace
trace.go#L41: ctx = context.WithValue(ctx, clientEventContextKey{}, trace)
trace.go#L65: ctx = context.WithValue(ctx, nettrace.TraceKey{}, nt)
runtime/pprof
label.go#L71: return context.WithValue(ctx, labelContextKey{}, &childLabels)
runtime/trace
annotation.go#L43: return context.WithValue(pctx, traceContextKey{}, s), s
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |