(ctx context.Context)
| 75 | } |
| 76 | |
| 77 | func GetWshRpcFromContext(ctx context.Context) *WshRpc { |
| 78 | rtn := ctx.Value(wshRpcContextKey{}) |
| 79 | if rtn == nil { |
| 80 | return nil |
| 81 | } |
| 82 | return rtn.(*WshRpc) |
| 83 | } |
| 84 | |
| 85 | func GetRpcSourceFromContext(ctx context.Context) string { |
| 86 | rtn := ctx.Value(wshRpcRespHandlerContextKey{}) |
no test coverage detected