(ctx context.Context)
| 83 | } |
| 84 | |
| 85 | func GetRpcSourceFromContext(ctx context.Context) string { |
| 86 | rtn := ctx.Value(wshRpcRespHandlerContextKey{}) |
| 87 | if rtn == nil { |
| 88 | return "" |
| 89 | } |
| 90 | return rtn.(*RpcResponseHandler).GetSource() |
| 91 | } |
| 92 | |
| 93 | func GetIsCanceledFromContext(ctx context.Context) bool { |
| 94 | rtn := ctx.Value(wshRpcRespHandlerContextKey{}) |
no test coverage detected