Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPayload = errors.New("grpc invalid payload")
Functions ¶
func NewGRPCCodec ¶
func NewGRPCCodec(opts ...CodecOption) remote.Codec
NewGRPCCodec create grpc and protobuf codec
Types ¶
type CodecOption ¶
type CodecOption func(c *grpcCodec)
func WithMaxReceiveMessageSize ¶ added in v0.14.5
func WithMaxReceiveMessageSize(size int) CodecOption
WithMaxReceiveMessageSize limits the maximum size in bytes of a received gRPC message. A non-positive value means unlimited.
func WithThriftCodec ¶
func WithThriftCodec(t remote.PayloadCodec) CodecOption
Click to show internal directories.
Click to hide internal directories.