Documentation ¶
Index ¶
- func CreateOrOpenFile(path string) (*os.File, error)
- type Btree
- func (bt *Btree[T]) Count() (int, error)
- func (bt *Btree[T]) Error() error
- func (bt *Btree[T]) Get(key string) (string, time.Time, bool, error)
- func (bt *Btree[T]) Insert(value *pair.Pairs) error
- func (bt *Btree[T]) IsRootNode(n node) bool
- func (bt *Btree[T]) Iterate(f func(key string, val string, addedAt time.Time) error) error
- func (bt *Btree[T]) SetRootNode(n node)
- func (bt *Btree[T]) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Btree ¶
type Btree[T any] struct { // contains filtered or unexported fields }
Btree - Our in memory Btree struct
func InitializeBtree ¶
NewBtree - Create a new btree
func (*Btree[T]) IsRootNode ¶
func (*Btree[T]) SetRootNode ¶
func (bt *Btree[T]) SetRootNode(n node)
Click to show internal directories.
Click to hide internal directories.