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

Function GetRpcResponseHandlerFromContext

pkg/wshutil/wshrpc.go:101–107  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

99}
100
101func GetRpcResponseHandlerFromContext(ctx context.Context) *RpcResponseHandler {
102 rtn := ctx.Value(wshRpcRespHandlerContextKey{})
103 if rtn == nil {
104 return nil
105 }
106 return rtn.(*RpcResponseHandler)
107}
108
109func (w *WshRpc) GetPeerInfo() string {
110 return w.DebugName

Callers 8

ConnUpdateWshCommandMethod · 0.92
GetConnNameFromContextFunction · 0.92
RouteAnnounceCommandMethod · 0.85
AuthenticateCommandMethod · 0.85

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected