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)
| 432 | // Deprecated: use encoding.RegisterCompressor instead. Will be supported |
| 433 | // throughout 1.x. |
| 434 | func 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. |