stack

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation ¶

Overview ¶

package: stack / bookmarks type: logic job: the stack's 𝒰_hist — a delegating BookmarkStore that puts and gets through the same tier rules, fan-out and fall-through the claim path uses limits: carries no policy of its own; every decision is stack.go's, called not copied (-> stack.go, bookmark_store in the library)

package: stack / persistence type: logic job: the background filler — a bounded, deduplicating, lossy batch queue for opportunistic cache writes that must never slow or fail a read limits: puts claims into layers the stack chose; deciding WHICH layers and WHY is the router's (-> stack.go, query.go)

package: stack / persistence type: adapter job: the stack's read path — run the query on the top layer, re-read the claims from a layer holding the stored record when the top layer keeps none, then encode limits: routing only, no storage and no query execution of its own (-> the layer Universes); the serialising itself is the library's (-> ranke.EncodeResults)

package: stack / persistence type: adapter job: compose ordered Universe layers into one read-through / write-through Universe — cache + durable tiers with self-healing repair (paper §Composing Universes) limits: no storage of its own (-> the layer Universes); naming/selecting layers is the caller's (-> ranke-db config)

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func NewStack ¶

func NewStack(us ...ranke.Universe) (ranke.Universe, error)

NewStack composes layers top (first) to bottom (last) by each one's Capabilities.Tier; one layer must be authoritative.

Types ¶

type Healing ¶

type Healing interface {
	// HealIdle reports that every fill offered so far has reached its layer.
	HealIdle() bool
}

Healing observes the background filler. A stack satisfies it, so a caller that needs a fill to have landed — a test, or a server pacing its own work — can ask.

Jump to

Keyboard shortcuts

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