2023-01-10 15:58:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "rpc_request_definitions.hpp"
|
|
|
|
#include <string_view>
|
|
|
|
#include <llarp/config/config.hpp>
|
|
|
|
#include <oxenmq/oxenmq.h>
|
|
|
|
#include <oxenmq/address.h>
|
|
|
|
#include <oxen/log/omq_logger.hpp>
|
|
|
|
|
|
|
|
namespace llarp::rpc
|
|
|
|
{
|
|
|
|
using rpc_input = std::variant<std::monostate, nlohmann::json, oxenc::bt_dict_consumer>;
|
|
|
|
|
|
|
|
inline void
|
|
|
|
parse_request(NoArgs&, rpc_input)
|
|
|
|
{}
|
|
|
|
|
|
|
|
void
|
|
|
|
parse_request(QuicConnect& quicconnect, rpc_input input);
|
|
|
|
void
|
|
|
|
parse_request(QuicListener& quiclistener, rpc_input input);
|
|
|
|
void
|
|
|
|
parse_request(LookupSnode& lookupsnode, rpc_input input);
|
|
|
|
void
|
2023-01-24 17:44:02 +00:00
|
|
|
parse_request(MapExit& mapexit, rpc_input input);
|
|
|
|
void
|
|
|
|
parse_request(UnmapExit& unmapexit, rpc_input input);
|
2023-01-10 15:58:26 +00:00
|
|
|
void
|
2023-01-27 23:08:43 +00:00
|
|
|
parse_request(SwapExits& swapexits, rpc_input input);
|
|
|
|
void
|
2023-01-10 15:58:26 +00:00
|
|
|
parse_request(DNSQuery& dnsquery, rpc_input input);
|
|
|
|
void
|
|
|
|
parse_request(Config& config, rpc_input input);
|
|
|
|
|
|
|
|
} // namespace llarp::rpc
|