util

package
v0.0.0-...-cb7c7b8 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadHeader

func ReadHeader(r io.Reader) (msgID uint64, msgLen uint32, err error)

ReadHeader reads a protocol header from reader.

func ReadMessage

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

ReadMessage reads a protocol buffer message from reader.

func WriteMessage

func WriteMessage(w io.Writer, msgID uint64, msg proto.Message) error

WriteMessage writes a protocol buffer message to writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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