persistence

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RadixTree

type RadixTree struct {
	Tree *radix.Tree
	// contains filtered or unexported fields
}

func NewRadixTree added in v0.2.0

func NewRadixTree() *RadixTree

func (*RadixTree) All

func (r *RadixTree) All() []arch.ObjIdentifier

func (*RadixTree) Find

func (r *RadixTree) Find(id arch.ObjIdentifier) arch.Object

func (*RadixTree) GetObjects

func (r *RadixTree) GetObjects(ids []arch.ObjIdentifier) ([]arch.Object, error)

func (*RadixTree) Insert

func (r *RadixTree) Insert(obj arch.Object) error

func (*RadixTree) Walk

func (r *RadixTree) Walk(cb func(obj arch.Object) error)

type Relations

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

func (*Relations) Insert

func (kv *Relations) Insert(rel arch.Relation) error

func (*Relations) Walk

func (kv *Relations) Walk(walker func(rel arch.Relation) error)

Jump to

Keyboard shortcuts

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