Module persist
Expand description
This module contains a simple key-value store trait KVStore that
allows one to implement the persistence for ChannelManager, NetworkGraph,
and ChannelMonitor all in one place.
Structs§
- Monitor
Updating Persister - Implements
Persistin a way that writes and reads bothChannelMonitors andChannelMonitorUpdates.
Constants§
- ARCHIVED_
CHANNEL_ MONITOR_ PERSISTENCE_ PRIMARY_ NAMESPACE - The primary namespace under which archived
ChannelMonitors will be persisted. - ARCHIVED_
CHANNEL_ MONITOR_ PERSISTENCE_ SECONDARY_ NAMESPACE - The secondary namespace under which archived
ChannelMonitors will be persisted. - CHANNEL_
MANAGER_ PERSISTENCE_ KEY - The key under which the
ChannelManagerwill be persisted. - CHANNEL_
MANAGER_ PERSISTENCE_ PRIMARY_ NAMESPACE - The primary namespace under which the
ChannelManagerwill be persisted. - CHANNEL_
MANAGER_ PERSISTENCE_ SECONDARY_ NAMESPACE - The secondary namespace under which the
ChannelManagerwill be persisted. - CHANNEL_
MONITOR_ PERSISTENCE_ PRIMARY_ NAMESPACE - The primary namespace under which
ChannelMonitors will be persisted. - CHANNEL_
MONITOR_ PERSISTENCE_ SECONDARY_ NAMESPACE - The secondary namespace under which
ChannelMonitors will be persisted. - CHANNEL_
MONITOR_ UPDATE_ PERSISTENCE_ PRIMARY_ NAMESPACE - The primary namespace under which
ChannelMonitorUpdates will be persisted. - KVSTORE_
NAMESPACE_ KEY_ ALPHABET - The alphabet of characters allowed for namespaces and keys.
- KVSTORE_
NAMESPACE_ KEY_ MAX_ LEN - The maximum number of characters namespaces and keys may have.
- MONITOR_
UPDATING_ PERSISTER_ PREPEND_ SENTINEL - A sentinel value to be prepended to monitors persisted by the
MonitorUpdatingPersister. - NETWORK_
GRAPH_ PERSISTENCE_ KEY - The key under which the
NetworkGraphwill be persisted. - NETWORK_
GRAPH_ PERSISTENCE_ PRIMARY_ NAMESPACE - The primary namespace under which the
NetworkGraphwill be persisted. - NETWORK_
GRAPH_ PERSISTENCE_ SECONDARY_ NAMESPACE - The secondary namespace under which the
NetworkGraphwill be persisted. - OUTPUT_
SWEEPER_ PERSISTENCE_ KEY - The secondary namespace under which
OutputSweeperstate will be persisted. The key under whichOutputSweeperstate will be persisted. - OUTPUT_
SWEEPER_ PERSISTENCE_ PRIMARY_ NAMESPACE - The primary namespace under which
OutputSweeperstate will be persisted. - OUTPUT_
SWEEPER_ PERSISTENCE_ SECONDARY_ NAMESPACE - The secondary namespace under which
OutputSweeperstate will be persisted. - SCORER_
PERSISTENCE_ KEY - The key under which the
WriteableScorewill be persisted. - SCORER_
PERSISTENCE_ PRIMARY_ NAMESPACE - The primary namespace under which the
WriteableScorewill be persisted. - SCORER_
PERSISTENCE_ SECONDARY_ NAMESPACE - The secondary namespace under which the
WriteableScorewill be persisted.
Traits§
- KVStore
- Provides an interface that allows storage and retrieval of persisted values that are associated with given keys.
- Persister
- Trait that handles persisting a
ChannelManager,NetworkGraph, andWriteableScoreto disk.
Functions§
- read_
channel_ monitors - Read previously persisted
ChannelMonitors from the store.