MCPcopy Create free account
hub / github.com/goadesign/goa / bidirectionalStreamingComplexDSL

Function bidirectionalStreamingComplexDSL

http/codegen/websocket_golden_test.go:334–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

332}
333
334func 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
359func bidirectionalStreamingWithViewsDSL() {
360 var Request = Type("Request", func() {

Callers

nothing calls this directly

Calls 9

AttributeFunction · 0.85
RequiredFunction · 0.85
MethodFunction · 0.85
StreamingPayloadFunction · 0.85
StreamingResultFunction · 0.85
GETFunction · 0.85
TypeTypeAlias · 0.50
ServiceFunction · 0.50
HTTPFunction · 0.50

Tested by

no test coverage detected