stream

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_MESSAGE_SIZE = 1024 * 1024

Variables

This section is empty.

Functions

func ReadProtoMessage

func ReadProtoMessage(r io.Reader, msg proto.Message) error

ReadProtoMessage reads a proto message from a stream with a max size of 1MB.

func WriteProtoMessage

func WriteProtoMessage(w io.Writer, msg proto.Message) error

WriteProtoMessage writes a proto message to a stream.

Types

This section is empty.

Jump to

Keyboard shortcuts

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