Skip to main content

Module surb_store

Module surb_store 

Source

Structsยง

EvictionReporters ๐Ÿ”’
The capacity-eviction reporters of a single MemorySurbStore, one per cache.
MemorySurbStore
Basic SurbStore implementation based on an in-memory cache.
PoppedSurb
Represents a single SURB along with its ID popped from the SurbRingBuffer.
SizeEvictionReporter ๐Ÿ”’
Keeps capacity evictions observable without letting them flood the log.
SurbRingBuffer
Ring buffer of SURBs and their IDs, all normally belonging to one pseudonym and therefore identified only by [HoprSurbId].
SurbStoreConfig
Configuration for the SURB cache.

Enumsยง

SurbPopOrder
Which end of the per-pseudonym buffer a pop consumes from. Replying side only.

Constantsยง

MINIMUM_OPENERS_PER_PSEUDONYM ๐Ÿ”’
MINIMUM_OPENER_LIFETIME ๐Ÿ”’
MINIMUM_OPENER_PSEUDONYMS ๐Ÿ”’
MINIMUM_SURBS_PER_PSEUDONYM ๐Ÿ”’
MINIMUM_SURB_LIFETIME
Lower bound on SurbStoreConfig::pseudonyms_lifetime, enforced by the config validator.
MIN_SURB_RB_CAPACITY ๐Ÿ”’
SIZE_EVICTION_WARN_INTERVAL ๐Ÿ”’
Shortest gap between two capacity-eviction warnings from the same cache.

Functionsยง

default_distress_threshold ๐Ÿ”’
default_max_openers_per_pseudonym ๐Ÿ”’
default_max_pseudonyms ๐Ÿ”’
default_pseudonyms_lifetime ๐Ÿ”’
default_rb_capacity ๐Ÿ”’
default_reply_opener_lifetime ๐Ÿ”’
validate_pseudonyms_lifetime ๐Ÿ”’
validate_reply_opener_lifetime ๐Ÿ”’