Documentation ¶ Index ¶ func Read(r io.Reader) (*pb.Envelope, error) func ReadRaw(r io.Reader) (*pb.Envelope, []byte, error) func Write(w io.Writer, env *pb.Envelope) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Read ¶ func Read(r io.Reader) (*pb.Envelope, error) Read reads a length-prefixed Envelope from the reader. func ReadRaw ¶ func ReadRaw(r io.Reader) (*pb.Envelope, []byte, error) ReadRaw reads a length-prefixed Envelope. If the envelope contains a RawHeader, it also reads the subsequent raw bytes from the reader. Returns (envelope, rawBytes, error). rawBytes is nil for non-RawHeader messages. func Write ¶ func Write(w io.Writer, env *pb.Envelope) error Write serializes an Envelope and writes it with a 4-byte big-endian length prefix. Types ¶ This section is empty. Source Files ¶ View all Source files envelope.go Click to show internal directories. Click to hide internal directories.