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

Function clientStreamingWithValidationDSL

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

Source from the content-addressed store, hash-verified

298}
299
300func 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
322func bidirectionalStreamingPrimitiveDSL() {
323 Service("TestService", func() {

Callers

nothing calls this directly

Calls 12

MethodFunction · 0.85
StreamingPayloadFunction · 0.85
AttributeFunction · 0.85
MinLengthFunction · 0.85
MaxLengthFunction · 0.85
MinimumFunction · 0.85
MaximumFunction · 0.85
RequiredFunction · 0.85
ResultFunction · 0.85
GETFunction · 0.85
ServiceFunction · 0.50
HTTPFunction · 0.50

Tested by

no test coverage detected