smollerGraph
0.20.2
A small graph database, from scratch
Loading...
Searching...
No Matches
server.h
Go to the documentation of this file.
1
#ifndef SMOLLERGRAPH_SERVER_H_
2
#define SMOLLERGRAPH_SERVER_H_
3
4
#include <string>
5
6
#include "absl/status/status.h"
7
#include "
smollergraph/graph.h
"
8
9
namespace
smollergraph
{
10
11
// Answers HTTP requests for the graph on `address` and `port`, until the
12
// process is stopped. Returns an error when it can't listen there.
13
absl::Status
Serve
(
const
Graph& graph,
const
std::string& address,
int
port);
14
15
}
// namespace smollergraph
16
17
#endif
// SMOLLERGRAPH_SERVER_H_
graph.h
smollergraph
Definition
api.h:11
smollergraph::Serve
absl::Status Serve(const Graph &graph, const std::string &address, int port)
Answers HTTP requests for the graph on address and port, until the process is stopped.
Definition
server.cc:32
include
smollergraph
server.h
Generated by
1.9.8