Error class definitions were previously in server.hh, but they are separate entities - future .cc files can use the errors without the need of including server definitions. Message-Id: <b5689e0f4c9f9183161eafff718f45dd8a61b653.1559646761.git.sarna@scylladb.com>
32 lines
606 B
C++
32 lines
606 B
C++
/*
|
|
* Copyright 2019 ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* This file is part of Scylla.
|
|
*
|
|
* See the LICENSE.PROPRIETARY file in the top-level directory for licensing information.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "alternator/executor.hh"
|
|
#include <seastar/core/future.hh>
|
|
#include <seastar/http/httpd.hh>
|
|
|
|
namespace alternator {
|
|
|
|
class server {
|
|
seastar::httpd::http_server_control _control;
|
|
seastar::sharded<executor>& _executor;
|
|
public:
|
|
server(seastar::sharded<executor>& executor) : _executor(executor) {}
|
|
|
|
seastar::future<> init(uint16_t port);
|
|
private:
|
|
void set_routes(seastar::httpd::routes& r);
|
|
};
|
|
|
|
}
|
|
|