Settings
Help

Module state

Module state 

Source
Expand description

Implement a cache for onion descriptors and the facility to remember a bit about onion service history.

Structsยง

CircuitExpiryTask ๐Ÿ”’
Represents a task which is waiting to see when the circuit needs to be expired
Config
Configuration, currently just some retry parameters
Services ๐Ÿ”’
Hidden services;, our connections to them, and history of connections, etc.
TableIndex ๐Ÿ”’

Enumsยง

ServiceState ๐Ÿ”’
Value in the Services data structure

Constantsยง

MAX_RECHECKS ๐Ÿ”’
Number of times weโ€™re willing to iterate round the state machine loop
RETAIN_CIRCUIT_AFTER_LAST_USE ๐Ÿ”’
C Tor MaxCircuitDirtiness
RETAIN_DATA_AFTER_LAST_USE ๐Ÿ”’
How long to retain cached data about a hidden service

Traitsยง

HsClientConnectorConfig
Configuration for an HS client connector
MockableConnectorData
Mocking for actual HS connection work, to let us test the Services state machine

Functionsยง

obtain_circuit_or_continuation_info ๐Ÿ”’
Obtain a circuit from the Services table, or return a continuation

Type Aliasesยง

Continuation ๐Ÿ”’
โ€œContinuationโ€ return type from obtain_circuit_or_continuation_info
ServiceRecord ๐Ÿ”’
Entry in the 2nd-level lookup array