Namespace faabric::endpoint

namespace endpoint

Typedefs

using header = beast::http::field

Enums

enum class EndpointMode

Values:

enumerator SIGNAL
enumerator BG_THREAD
class FaabricEndpoint

Public Functions

FaabricEndpoint()
FaabricEndpoint(int port, int threadCount, std::shared_ptr<HttpRequestHandler> requestHandlerIn)
FaabricEndpoint(const FaabricEndpoint&) = delete
FaabricEndpoint(FaabricEndpoint&&) = delete
FaabricEndpoint &operator=(const FaabricEndpoint&) = delete
FaabricEndpoint &operator=(FaabricEndpoint&&) = delete
virtual ~FaabricEndpoint()
void start(EndpointMode mode = EndpointMode::SIGNAL)
void stop()
class FaabricEndpointHandler : public faabric::endpoint::HttpRequestHandler, public std::enable_shared_from_this<FaabricEndpointHandler>

Public Functions

virtual void onRequest(HttpRequestContext &&ctx, faabric::util::BeastHttpRequest &&request) override
struct HttpRequestContext

Public Members

asio::io_context &ioc
asio::any_io_executor executor
std::function<void(faabric::util::BeastHttpResponse&&)> sendFunction
class HttpRequestHandler

Subclassed by faabric::endpoint::FaabricEndpointHandler, faabric::planner::PlannerEndpointHandler

Public Functions

virtual void onRequest(HttpRequestContext &&ctx, faabric::util::BeastHttpRequest &&request) = 0
namespace detail
class EndpointState

Public Functions

inline EndpointState(int threadCountIn)

Public Members

asio::io_context ioc
std::vector<std::jthread> ioThreads