rippled
Loading...
Searching...
No Matches
Store.h
1#pragma once
2
3namespace xrpl {
4namespace PeerFinder {
5
7class Store
8{
9public:
10 virtual ~Store()
11 {
12 }
13
14 // load the bootstrap cache
16 virtual std::size_t
17 load(load_callback const& cb) = 0;
18
19 // save the bootstrap cache
20 struct Entry
21 {
22 explicit Entry() = default;
23
26 };
27 virtual void
28 save(std::vector<Entry> const& v) = 0;
29};
30
31} // namespace PeerFinder
32} // namespace xrpl
A version-independent IP address and port combination.
Definition IPEndpoint.h:18
Abstract persistence for PeerFinder data.
Definition Store.h:8
virtual std::size_t load(load_callback const &cb)=0
virtual void save(std::vector< Entry > const &v)=0
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
beast::IP::Endpoint endpoint
Definition Store.h:24