Documentation ¶
Index ¶
Constants ¶
View Source
const ( ToPresent = false ToPast = true )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchMode ¶
type BranchMode uint8
const ( IgnoreBranch BranchMode FollowBranch IncludeBranch )
type Iterator ¶
type Iterator interface { Direction() Direction CurrentEntry() ledger.DirectoryIndex ExtraEntries() []ledger.DirectoryIndex // Next retrieves a next entry in a sequence. Arg (prevRef) should be provided irrelevant of direction Next(prevRef reference.Holder) (bool, error) }
type Limiter ¶
type Limiter interface { CanRead() bool IsSkipped(recType uint32) bool CanReadExcerpt() bool CanReadBody() bool CanReadPayload() bool CanReadExtensions() bool CanReadExtension(ledger.ExtensionID) bool Next(consumedSize int, nextRecRef reference.Holder) Clone() Limiter }
func NewLimiter ¶
func NewNoLimits ¶
func NewNoLimits() Limiter
type Output ¶
type Output interface { BeginEntry(entry *catalog.Entry, fullExcerpt bool) error AddBody(readbundle.Slice) error AddPayload(readbundle.Slice) error AddExtension(ledger.ExtensionID, readbundle.Slice) error EndEntry() (consumedSize int, err error) }
type Selector ¶
type SequenceReader ¶
type SequenceReader struct {
// contains filtered or unexported fields
}
func NewSequenceReader ¶
func NewSequenceReader(iter Iterator, lim Limiter, out Output) *SequenceReader
func (*SequenceReader) HasMore ¶
func (p *SequenceReader) HasMore() bool
func (*SequenceReader) ReadAll ¶
func (p *SequenceReader) ReadAll() error
func (*SequenceReader) ReadNext ¶
func (p *SequenceReader) ReadNext() (bool, error)
func (*SequenceReader) SetPrevRef ¶
func (p *SequenceReader) SetPrevRef(ref reference.Holder)
func (*SequenceReader) SetReader ¶
func (p *SequenceReader) SetReader(reader readbundle.BasicReader)
Click to show internal directories.
Click to hide internal directories.