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

Function RPCDecompressor

server.go:434–438  ·  view source on GitHub ↗

RPCDecompressor returns a ServerOption that sets a decompressor for inbound messages. It has higher priority than decompressors registered via encoding.RegisterCompressor. Deprecated: use encoding.RegisterCompressor instead. Will be supported throughout 1.x.

(dc Decompressor)

Source from the content-addressed store, hash-verified

432// Deprecated: use encoding.RegisterCompressor instead. Will be supported
433// throughout 1.x.
434func RPCDecompressor(dc Decompressor) ServerOption {
435 return newFuncServerOption(func(o *serverOptions) {
436 o.dc = dc
437 })
438}
439
440// MaxMsgSize returns a ServerOption to set the max message size in bytes the server can receive.
441// If this is not set, gRPC uses the default limit.

Callers 5

makeClientsFunction · 0.92
listenAndServeMethod · 0.92
startServerMethod · 0.92

Calls 1

newFuncServerOptionFunction · 0.85

Tested by 4

listenAndServeMethod · 0.74
startServerMethod · 0.74