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

Function GetCompressor

encoding/encoding.go:98–100  ·  encoding/encoding.go::GetCompressor

GetCompressor returns Compressor for the given compressor name.

(name string)

Source from the content-addressed store, hash-verified

96
97// GetCompressor returns Compressor for the given compressor name.
98func GetCompressor(name string) Compressor {
99 return registeredCompressor[name]
100}
101
102// Codec defines the interface gRPC uses to encode and decode messages. Note
103// that implementations of this interface must be thread safe; a Codec's

Callers 11

processUnaryRPCMethod · 0.92
processStreamingRPCMethod · 0.92
recvMsgMethod · 0.92
newNonRetryClientStreamFunction · 0.92
RecvMsgMethod · 0.92
SendMsgMethod · 0.92
TestDecompressMethod · 0.92
setupGzipWrapCompressorFunction · 0.92
SetLevelFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestDecompressMethod · 0.74
setupGzipWrapCompressorFunction · 0.74