proto

package
v0.17.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package proto implements a custom encoding for grpc.

The codec registered by this package has an important difference from the default codec. Unlike the default codec, it does not reset the input message when unmarshaling.

This primarily impacts stream service calls. If you want to reuse a message and need it to be reset before calling RecvMsg, invoke the appropriate Reset method or proto.Reset before invoking RecvMsg or use a zero initialized message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL