Documentation ¶
Overview ¶
Package filebacked provides file-backed collections.
Index ¶
Constants ¶
View Source
const (
Extension = ".fb"
)
Extension is File extension.
Variables ¶
View Source
var WorkingDir = "/tmp"
WorkingDir is the directory used to stored files.
Functions ¶
This section is empty.
Types ¶
type EmptyIterator ¶
type EmptyIterator struct { }
EmptyIterator is an empty iterator.
func (*EmptyIterator) At ¶
func (*EmptyIterator) At(int) any
func (*EmptyIterator) AtWith ¶
func (*EmptyIterator) AtWith(int, any)
func (*EmptyIterator) Close ¶
func (*EmptyIterator) Close()
func (*EmptyIterator) Len ¶
func (*EmptyIterator) Len() int
func (*EmptyIterator) Next ¶
func (*EmptyIterator) Next() (any, bool)
func (*EmptyIterator) NextWith ¶
func (*EmptyIterator) NextWith(object any) bool
func (*EmptyIterator) Reverse ¶
func (*EmptyIterator) Reverse()
type FbIterator ¶
type FbIterator struct { // Reader. *Reader // contains filtered or unexported fields }
FbIterator is a filebacked iterator.
func (*FbIterator) NextWith ¶
func (r *FbIterator) NextWith(object any) (hasNext bool)
NextWith returns the next object.
type Iterator ¶
type Iterator interface { // Len returns the number of items. Len() int // Reverse the content. Reverse() // At returns the object at index. At(index int) any // AtWith populates with the objet at index. AtWith(int, any) // Next returns the next object. Next() (any, bool) // NextWith returns the next object (with). NextWith(object any) bool // Close the iterator. Close() }
Iterator interface. Read-only collection with stateful iteration.
type List ¶
type List struct {
// contains filtered or unexported fields
}
List is a File-backed list.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader performs reading.
Click to show internal directories.
Click to hide internal directories.