rippled
Loading...
Searching...
No Matches
PeerFinder.h
1#ifndef XRPL_APP_RDB_PEERFINDER_H_INCLUDED
2#define XRPL_APP_RDB_PEERFINDER_H_INCLUDED
3
4#include <xrpld/core/Config.h>
5#include <xrpld/core/DatabaseCon.h>
6#include <xrpld/peerfinder/detail/Store.h>
7
8namespace ripple {
9
16void
18 soci::session& session,
19 BasicConfig const& config,
21
28void
30 soci::session& session,
31 int currentSchemaVersion,
33
40void
42 soci::session& session,
43 std::function<void(std::string const&, int)> const& func);
44
50void
52 soci::session& session,
54
55} // namespace ripple
56
57#endif
A generic endpoint for log messages.
Definition Journal.h:41
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
void readPeerFinderDB(soci::session &session, std::function< void(std::string const &, int)> const &func)
readPeerFinderDB Reads all entries from the peer finder database and invokes the given callback for e...
void updatePeerFinderDB(soci::session &session, int currentSchemaVersion, beast::Journal j)
updatePeerFinderDB Updates the peer finder database to a new version.
void initPeerFinderDB(soci::session &session, BasicConfig const &config, beast::Journal j)
initPeerFinderDB Opens a session with the peer finder database.
Definition PeerFinder.cpp:6
void savePeerFinderDB(soci::session &session, std::vector< PeerFinder::Store::Entry > const &v)
savePeerFinderDB Saves a new entry to the peer finder database.