MCPcopy Create free account
hub / github.com/Azure/peerd / FromContext

Function FromContext

pkg/context/context.go:62–64  ·  view source on GitHub ↗

FromContext creates a new context from the given gin context.

(c *gin.Context)

Source from the content-addressed store, hash-verified

60
61// FromContext creates a new context from the given gin context.
62func FromContext(c *gin.Context) Context {
63 return Context{Context: c}
64}
65
66// Copy creates a copy of the context that can be safely used outside the request's scope.
67func (c Context) Copy() Context {

Callers 6

TestLoggerFunction · 0.70
TestSetOutboundHeadersFunction · 0.70
TestBlobUrlFunction · 0.70
TestFillCorrelationIdFunction · 0.70
TestIsRequestFromPeerFunction · 0.70
TestContextCopFunction · 0.70

Calls

no outgoing calls

Tested by 6

TestLoggerFunction · 0.56
TestSetOutboundHeadersFunction · 0.56
TestBlobUrlFunction · 0.56
TestFillCorrelationIdFunction · 0.56
TestIsRequestFromPeerFunction · 0.56
TestContextCopFunction · 0.56