# Packages
No description provided by the author
Package gzip implements and registers the gzip compressor during the initialization.
No description provided by the author
No description provided by the author
Package proto defines the protobuf codec.
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
GetArgType is copied from hessian, to get java class type of interface.
GetCodec gets a registered Codec by content-subtype, or nil if no Codec is registered for the content-subtype.
GetCompressor returns Compressor for the given compressor name.
NewPBWrapperTwoWayCodec new common.TwoWayCodec PBWrapperTwoWayCodec with @codecName defined Codec inside.
RegisterCodec registers the provided Codec for use with all gRPC clients and servers.
RegisterCompressor registers the compressor with gRPC by its name.
# Constants
Identity specifies the optional encoding for uncompressed streams.
# Structs
PBTwoWayCodec is pb impl of TwoWayCodec.
PBWrapperTwoWayCodec is codec impl of pb.
# Interfaces
Codec defines the interface gRPC uses to encode and decode messages.
Compressor is used for compressing and decompressing when sending or receiving messages.
TwoWayCodec is directly used by triple network logic It can specify the marshal and unmarshal logic of req and rsp.