Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnmarshaler ¶
func NewUnmarshaler(opts ...gowarc.WarcRecordOption) gowarc.Unmarshaler
Types ¶
type ArcFileReader ¶
type ArcFileReader struct {
// contains filtered or unexported fields
}
func NewArcFileReader ¶
func (*ArcFileReader) Close ¶
func (wf *ArcFileReader) Close() error
func (*ArcFileReader) Next ¶
func (wf *ArcFileReader) Next() (gowarc.WarcRecord, int64, *gowarc.Validation, error)
type CountingReader ¶
type CountingReader struct {
// contains filtered or unexported fields
}
CountingReader counts the bytes read through it.
func NewCountingReader ¶
func NewCountingReader(r io.Reader) *CountingReader
NewCountingReader makes a new CountingReader that counts the bytes read through it.
func NewLimitedCountingReader ¶
func NewLimitedCountingReader(r io.Reader, maxBytes int64) *CountingReader
NewLimitedCountingReader makes a new CountingReader that counts the bytes read through it.
When maxBytes bytes are read, the next read will return io.EOF even though the underlying reader has more data.
func (*CountingReader) N ¶
func (r *CountingReader) N() int64
N gets the number of bytes that have been read so far.
Click to show internal directories.
Click to hide internal directories.