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

Function withWshRpcContext

pkg/wshutil/wshrpc.go:69–71  ·  view source on GitHub ↗
(ctx context.Context, wshRpc *WshRpc)

Source from the content-addressed store, hash-verified

67type wshRpcRespHandlerContextKey struct{}
68
69func withWshRpcContext(ctx context.Context, wshRpc *WshRpc) context.Context {
70 return context.WithValue(ctx, wshRpcContextKey{}, wshRpc)
71}
72
73func withRespHandler(ctx context.Context, handler *RpcResponseHandler) context.Context {
74 return context.WithValue(ctx, wshRpcRespHandlerContextKey{}, handler)

Callers 1

handleRequestInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected