()
| 298 | } |
| 299 | |
| 300 | func clientStreamingWithValidationDSL() { |
| 301 | Service("TestService", func() { |
| 302 | Method("ClientStreamValidated", func() { |
| 303 | StreamingPayload(func() { |
| 304 | Attribute("value", String, func() { |
| 305 | MinLength(1) |
| 306 | MaxLength(100) |
| 307 | }) |
| 308 | Attribute("count", Int, func() { |
| 309 | Minimum(0) |
| 310 | Maximum(1000) |
| 311 | }) |
| 312 | Required("value") |
| 313 | }) |
| 314 | Result(String) |
| 315 | HTTP(func() { |
| 316 | GET("/client/stream/validated") |
| 317 | }) |
| 318 | }) |
| 319 | }) |
| 320 | } |
| 321 | |
| 322 | func bidirectionalStreamingPrimitiveDSL() { |
| 323 | Service("TestService", func() { |
nothing calls this directly
no test coverage detected