MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetConnData

Function GetConnData

pkg/genconn/genconn.go:34–43  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

32}
33
34func GetConnData(ctx context.Context) *connData {
35 if ctx == nil {
36 return nil
37 }
38 dataPtr := ctx.Value(connContextKey)
39 if dataPtr == nil {
40 return nil
41 }
42 return dataPtr.(*connData)
43}
44
45type CommandSpec struct {
46 Cmd string

Callers 1

determineScopesFunction · 0.92

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected