MCPcopy
hub / github.com/grpc/grpc-go / MethodFromServerStream

Function MethodFromServerStream

stream.go:1878–1880  ·  view source on GitHub ↗

MethodFromServerStream returns the method string for the input stream. The returned string is in the format of "/service/method".

(stream ServerStream)

Source from the content-addressed store, hash-verified

1876// MethodFromServerStream returns the method string for the input stream.
1877// The returned string is in the format of "/service/method".
1878func MethodFromServerStream(stream ServerStream) (string, bool) {
1879 return Method(stream.Context())
1880}
1881
1882// prepareMsg returns the hdr, payload and data using the compressors passed or
1883// using the passed preparedmsg. The returned boolean indicates whether

Callers 1

Calls 2

MethodFunction · 0.85
ContextMethod · 0.65

Tested by 1