MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / WithEndpoint

Function WithEndpoint

internal/logging/requestmeta.go:23–28  ·  view source on GitHub ↗
(ctx context.Context, endpoint string)

Source from the content-addressed store, hash-verified

21}
22
23func WithEndpoint(ctx context.Context, endpoint string) context.Context {
24 if ctx == nil {
25 ctx = context.Background()
26 }
27 return context.WithValue(ctx, endpointKey{}, endpoint)
28}
29
30func GetEndpoint(ctx context.Context) string {
31 if ctx == nil {

Callers 1

GetContextWithCancelMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected