()
| 263 | } |
| 264 | |
| 265 | func clientStreamingObjectDSL() { |
| 266 | Service("TestService", func() { |
| 267 | Method("ClientStreamObject", func() { |
| 268 | StreamingPayload(func() { |
| 269 | Attribute("data", String) |
| 270 | Attribute("timestamp", Int64) |
| 271 | Required("data") |
| 272 | }) |
| 273 | Result(String) |
| 274 | HTTP(func() { |
| 275 | GET("/client/stream/object") |
| 276 | }) |
| 277 | }) |
| 278 | }) |
| 279 | } |
| 280 | |
| 281 | func clientStreamingUserTypeDSL() { |
| 282 | var Message = Type("Message", func() { |