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

Function UseCompressor

rpc_util.go:513–515  ·  view source on GitHub ↗

UseCompressor returns a CallOption which sets the compressor used when sending the request. If WithCompressor is also set, UseCompressor has higher priority. # Experimental Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.

(name string)

Source from the content-addressed store, hash-verified

511// Notice: This API is EXPERIMENTAL and may be changed or removed in a
512// later release.
513func UseCompressor(name string) CallOption {
514 return CompressorCallOption{CompressorType: name}
515}
516
517// CompressorCallOption is a CallOption that indicates the compressor to use.
518//

Calls

no outgoing calls