Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDataCorrupted = fmt.Errorf("data corrupted")
Functions ¶
This section is empty.
Types ¶
type RandomAccessReader ¶
RandomAccessReader is an interface for reading protobuf messages from a seekable source.
type SequentialReader ¶
type SequentialReader interface { ReadNext(entry proto.Message) (int, error) SkipN(n int) error Skip() error Offset() int64 }
SequentialReader is an interface for reading protobuf messages sequentially from a source that does not support seeking.
type SequentialWriter ¶
SequentialWriter is an interface for writing protobuf messages to a sequential source. The offset of the next write can be queried with the Offset method.
Click to show internal directories.
Click to hide internal directories.