MCPcopy Create free account
hub / github.com/distributedio/titan / New

Function New

context/context.go:93–95  ·  view source on GitHub ↗

New a context

(c *ClientContext, s *ServerContext)

Source from the content-addressed store, hash-verified

91
92// New a context
93func New(c *ClientContext, s *ServerContext) *Context {
94 return &Context{Context: context.Background(), Client: c, Server: s}
95}
96
97// CancelFunc tells an operation to abandon its work
98type CancelFunc context.CancelFunc

Callers 5

serveMethod · 0.92
TestInfoFunction · 0.92
TestMonitorFunction · 0.92
TestClient_ListFunction · 0.92
ContextTestFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestInfoFunction · 0.74
TestMonitorFunction · 0.74
TestClient_ListFunction · 0.74
ContextTestFunction · 0.74