engine

package
v0.0.0-...-a0b7d7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(shardsNumber int) (*Engine, error)

func (*Engine) ExistsBetween

func (e *Engine) ExistsBetween(version1, version2 int64, key string) bool

func (*Engine) Get

func (e *Engine) Get(version int64, key string) (string, bool)

func (*Engine) Set

func (e *Engine) Set(version int64, key string, value *string)

func (*Engine) SetMany

func (e *Engine) SetMany(version int64, modified map[string]*string)

type Shard

type Shard struct {
	// contains filtered or unexported fields
}

func NewShard

func NewShard() *Shard

func (*Shard) ExistsBetween

func (e *Shard) ExistsBetween(version1, version2 int64, key string) bool

func (*Shard) Get

func (e *Shard) Get(version int64, key string) (string, bool)

func (*Shard) Set

func (e *Shard) Set(version int64, key string, value *string)

type SkipList

type SkipList struct {
	// contains filtered or unexported fields
}

func NewSkipList

func NewSkipList(sl *SkipList) *SkipList

func (*SkipList) Delete

func (sl *SkipList) Delete(key VersionedKey)

func (*SkipList) ExistsBetween

func (sl *SkipList) ExistsBetween(key1 VersionedKey, key2 VersionedKey) bool

func (*SkipList) Find

func (sl *SkipList) Find(key VersionedKey) (string, bool)

func (*SkipList) Insert

func (sl *SkipList) Insert(key VersionedKey, value *string)

type SkipNode

type SkipNode struct {
	// contains filtered or unexported fields
}

type VersionedKey

type VersionedKey struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL