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

Method SetTrailer

stream.go:1599–1599  ·  view source on GitHub ↗

SetTrailer sets the trailer metadata which will be sent with the RPC status. When called more than once, all the provided metadata will be merged.

(metadata.MD)

Source from the content-addressed store, hash-verified

1597 // SetTrailer sets the trailer metadata which will be sent with the RPC status.
1598 // When called more than once, all the provided metadata will be merged.
1599 SetTrailer(metadata.MD)
1600 // Context returns the context for this stream.
1601 Context() context.Context
1602 // SendMsg sends a message. On error, SendMsg aborts the stream and the

Callers 15

SetTrailerMethod · 0.65
startServerMethod · 0.65
FullDuplexCallMethod · 0.65
TestRetryStreamingMethod · 0.65
FullDuplexCallMethod · 0.65
TestInvalidMetadataMethod · 0.65
TestContextCanceledMethod · 0.65
streamInterceptorFunction · 0.65
ServerStreamingEchoMethod · 0.65
ClientStreamingEchoMethod · 0.65

Implementers 1

serverStreamstream.go

Calls

no outgoing calls

Tested by 8

startServerMethod · 0.52
TestRetryStreamingMethod · 0.52
FullDuplexCallMethod · 0.52
TestInvalidMetadataMethod · 0.52
TestContextCanceledMethod · 0.52
newStatsTestStubServerFunction · 0.52