MCPcopy
hub / github.com/wavetermdev/waveterm / ContextWithConnData

Function ContextWithConnData

pkg/genconn/genconn.go:27–32  ·  view source on GitHub ↗
(ctx context.Context, blockId string)

Source from the content-addressed store, hash-verified

25}
26
27func ContextWithConnData(ctx context.Context, blockId string) context.Context {
28 if blockId == "" {
29 return ctx
30 }
31 return context.WithValue(ctx, connContextKey, &connData{BlockId: blockId})
32}
33
34func GetConnData(ctx context.Context) *connData {
35 if ctx == nil {

Callers 4

ConnEnsureCommandMethod · 0.92
ConnConnectCommandMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected