(s S, p P)
| 417 | } |
| 418 | |
| 419 | func newRequest[S Session, P Params](s S, p P) Request { |
| 420 | switch s := any(s).(type) { |
| 421 | case *ClientSession: |
| 422 | return &ClientRequest[P]{Session: s, Params: p} |
| 423 | case *ServerSession: |
| 424 | return &ServerRequest[P]{Session: s, Params: p} |
| 425 | default: |
| 426 | panic("bad session") |
| 427 | } |
| 428 | } |
| 429 | |
| 430 | // Meta is additional metadata for requests, responses and other types. |
| 431 | type Meta map[string]any |
no outgoing calls
no test coverage detected
searching dependent graphs…