Implement loading PGs from Consul (in theory)
This commit is contained in:
+10
-1
@@ -1,7 +1,16 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include "json11/json11.hpp"
|
||||
|
||||
int extract_port(std::string & host);
|
||||
struct http_response_t
|
||||
{
|
||||
int status_code;
|
||||
std::string status_line;
|
||||
std::map<std::string, std::string> headers;
|
||||
std::string body;
|
||||
};
|
||||
|
||||
http_response_t *parse_http_response(std::string res);
|
||||
std::vector<std::string> getifaddr_list();
|
||||
|
||||
Reference in New Issue
Block a user