()
| 211 | } |
| 212 | |
| 213 | func serverStreamingWithViewsDSL() { |
| 214 | var UserType = ResultType("User", func() { |
| 215 | Attributes(func() { |
| 216 | Attribute("id", String) |
| 217 | Attribute("name", String) |
| 218 | Attribute("email", String) |
| 219 | }) |
| 220 | Required("id", "name") |
| 221 | View("default", func() { |
| 222 | Attribute("id") |
| 223 | Attribute("name") |
| 224 | Attribute("email") |
| 225 | }) |
| 226 | View("tiny", func() { |
| 227 | Attribute("id") |
| 228 | }) |
| 229 | }) |
| 230 | |
| 231 | Service("TestService", func() { |
| 232 | Method("StreamUserWithViews", func() { |
| 233 | StreamingResult(UserType) |
| 234 | HTTP(func() { |
| 235 | GET("/stream/user/views") |
| 236 | }) |
| 237 | }) |
| 238 | }) |
| 239 | } |
| 240 | |
| 241 | func clientStreamingPrimitiveDSL() { |
| 242 | Service("TestService", func() { |
nothing calls this directly
no test coverage detected