- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 71 for withValues (0.26 sec)
-
internal/dsync/drwmutex.go
// Also, pass the trace context info if found for debugging netLockCtx := context.Background() tc, ok := ctx.Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt) if ok { netLockCtx = context.WithValue(netLockCtx, mcontext.ContextTraceKey, tc) } for index, c := range restClnts { wg.Add(1) // broadcast lock request to all nodes go func(index int, isReadLock bool, c NetLocker) { defer wg.Done()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 19.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/request/webhook_duration.go
// an instance of LatencyTrackers is added. Tracers use given clock. func WithLatencyTrackersAndCustomClock(parent context.Context, c clock.Clock) context.Context { return WithValue(parent, latencyTrackersKey, &LatencyTrackers{ MutatingWebhookTracker: newSumLatencyTracker(c), ValidatingWebhookTracker: newMaxLatencyTracker(c), APFQueueWaitTracker: newMaxLatencyTracker(c),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 13 22:15:37 UTC 2024 - 11.5K bytes - Viewed (0) -
src/net/http/fcgi/child.go
c.conn.writeRecord(typeStderr, req.reqId, []byte(err.Error())) } else { httpReq.Body = body withoutUsedEnvVars := filterOutUsedEnvVars(req.params) envVarCtx := context.WithValue(httpReq.Context(), envVarsContextKey{}, withoutUsedEnvVars) httpReq = httpReq.WithContext(envVarCtx) c.handler.ServeHTTP(r, httpReq) } // Make sure we serve something even if nothing was written to r r.Write(nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 10.3K bytes - Viewed (0) -
src/cmd/go/script_test.go
type testingTBKey struct{} // tbContext returns a Context derived from ctx and associated with t. func tbContext(ctx context.Context, t testing.TB) context.Context { return context.WithValue(ctx, testingTBKey{}, t) } // tbFromContext returns the testing.TB associated with ctx, if any. func tbFromContext(ctx context.Context) (testing.TB, bool) { t := ctx.Value(testingTBKey{}) if t == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 12.2K bytes - Viewed (0) -
api/go1.7.txt
pkg context, func WithCancel(Context) (Context, CancelFunc) pkg context, func WithDeadline(Context, time.Time) (Context, CancelFunc) pkg context, func WithTimeout(Context, time.Duration) (Context, CancelFunc) pkg context, func WithValue(Context, interface{}, interface{}) Context pkg context, type CancelFunc func() pkg context, type Context interface { Deadline, Done, Err, Value } pkg context, type Context interface, Deadline() (time.Time, bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 28 15:08:11 UTC 2016 - 13.6K bytes - Viewed (0) -
cmd/admin-handlers-config-kv.go
if err != nil { return } tgts, err := config.ParseConfigTargetID(bytes.NewReader(kvBytes)) if err != nil { return } ctx = context.WithValue(ctx, config.ContextKeyForTargetFromConfig, tgts) if verr := validateConfig(ctx, result.Cfg, result.SubSys); verr != nil { err = badConfigErr{Err: verr} return }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 15.7K bytes - Viewed (0) -
src/crypto/tls/quic_test.go
t.Fatalf("error during connection handshake: %v", err) } } func TestQUICStartContextPropagation(t *testing.T) { const key = "key" const value = "value" ctx := context.WithValue(context.Background(), key, value) config := testConfig.Clone() config.MinVersion = VersionTLS13 calls := 0 config.GetConfigForClient = func(info *ClientHelloInfo) (*Config, error) { calls++
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 17:23:54 UTC 2024 - 19.3K bytes - Viewed (0) -
src/cmd/go/internal/cfg/cfg.go
return "" } // WithBuildXWriter returns a Context in which BuildX output is written // to given io.Writer. func WithBuildXWriter(ctx context.Context, xLog io.Writer) context.Context { return context.WithValue(ctx, buildXContextKey{}, xLog) } type buildXContextKey struct{} // BuildXWriter returns nil if BuildX is false, or // the writer to which BuildX output should be written otherwise.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0) -
src/net/lookup_test.go
keyValues := []struct { key, value any }{ {"key-1", 12}, {384, "value2"}, {new(float64), 137}, } ctx := context.Background() for _, kv := range keyValues { ctx = context.WithValue(ctx, kv.key, kv.value) } wantIPs := []IPAddr{ {IP: IPv4(127, 0, 0, 1)}, {IP: IPv6loopback}, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 41.4K bytes - Viewed (0) -
src/log/slog/logger_test.go
{l.ErrorContext, LevelError}, {DebugContext, LevelDebug}, {InfoContext, LevelInfo}, {WarnContext, LevelWarn}, {ErrorContext, LevelError}, } { h.clear() ctx := context.WithValue(context.Background(), "L", test.wantLevel) test.f(ctx, "msg") if gv := h.ctx.Value("L"); gv != test.wantLevel || h.r.Level != test.wantLevel {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 10 21:25:30 UTC 2023 - 19.5K bytes - Viewed (0)