server-session-clientstreaming.swift 739 B

12345678910111213
  1. {{ access }} protocol {{ .|session:file,service,method }}: ServerSessionClientStreaming {
  2. /// Receive a message. Blocks until a message is received or the client closes the connection.
  3. func receive() throws -> {{ method|input }}
  4. /// Send a response and close the connection.
  5. func sendAndClose(_ response: {{ method|output }}) throws
  6. }
  7. fileprivate final class {{ .|session:file,service,method }}Impl: ServerSessionClientStreamingImpl<{{ method|input }}, {{ method|output }}>, {{ .|session:file,service,method }} {}
  8. //-{% if generateTestStubs %}
  9. class {{ .|session:file,service,method }}TestStub: ServerSessionClientStreamingTestStub<{{ method|input }}, {{ method|output }}>, {{ .|session:file,service,method }} {}
  10. //-{% endif %}