()
| 332 | } |
| 333 | |
| 334 | func bidirectionalStreamingComplexDSL() { |
| 335 | var Request = Type("Request", func() { |
| 336 | Attribute("id", String) |
| 337 | Attribute("data", String) |
| 338 | Required("id", "data") |
| 339 | }) |
| 340 | |
| 341 | var Response = Type("Response", func() { |
| 342 | Attribute("id", String) |
| 343 | Attribute("result", String) |
| 344 | Attribute("status", String) |
| 345 | Required("id", "result") |
| 346 | }) |
| 347 | |
| 348 | Service("TestService", func() { |
| 349 | Method("BidirectionalComplex", func() { |
| 350 | StreamingPayload(Request) |
| 351 | StreamingResult(Response) |
| 352 | HTTP(func() { |
| 353 | GET("/bidirectional/complex") |
| 354 | }) |
| 355 | }) |
| 356 | }) |
| 357 | } |
| 358 | |
| 359 | func bidirectionalStreamingWithViewsDSL() { |
| 360 | var Request = Type("Request", func() { |
nothing calls this directly
no test coverage detected