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

Function usesStreamEnvelope

grpc/codegen/service_data.go:1352–1354  ·  view source on GitHub ↗

usesStreamEnvelope reports whether the transport needs a typed stream envelope to carry both the one-shot method payload and streaming payload items.

(e *expr.GRPCEndpointExpr)

Source from the content-addressed store, hash-verified

1350// envelope to carry both the one-shot method payload and streaming payload
1351// items.
1352func usesStreamEnvelope(e *expr.GRPCEndpointExpr) bool {
1353 return e.MethodExpr.IsPayloadStreaming() && !isEmpty(e.Request.Type)
1354}
1355
1356// makeProtoBufStreamEnvelope builds the protobuf stream envelope that carries
1357// the initial request payload frame and subsequent stream item frames.

Callers 1

analyzeMethod · 0.85

Calls 2

IsPayloadStreamingMethod · 0.80
isEmptyFunction · 0.70

Tested by

no test coverage detected