(ctx context.Context)
| 83 | } |
| 84 | |
| 85 | func GetConnNameFromContext(ctx context.Context) (string, error) { |
| 86 | handler := wshutil.GetRpcResponseHandlerFromContext(ctx) |
| 87 | if handler == nil { |
| 88 | return "", fmt.Errorf("error getting rpc response handler from context") |
| 89 | } |
| 90 | return handler.GetRpcContext().Conn, nil |
| 91 | } |
| 92 | |
| 93 | // ParseURI parses a connection URI and returns the connection type, host/path, and parameters. |
| 94 | func ParseURI(uri string) (*Connection, error) { |
no test coverage detected