leafrefscan

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(ctx context.Context, rootID uint64, get GetFunc, verify VerifyFunc, visit VisitFunc) error

Walk visits every leaf-ref pointer reachable from rootID.

func WalkRoots added in v0.5.0

func WalkRoots(ctx context.Context, rootIDs []uint64, get GetFunc, verify VerifyFunc, visit VisitFunc) error

WalkRoots visits every leaf-ref pointer reachable from the provided roots. Pager-backed pages are deduplicated across the whole root set.

Types

type GetFunc

type GetFunc func(pageID uint64) ([]byte, error)

type VerifyFunc

type VerifyFunc func(pageID uint64, n node.Node) error

type VisitFunc

type VisitFunc func(ptr page.LeafLogPtr) error

Jump to

Keyboard shortcuts

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