CCF
Loading...
Searching...
No Matches
user_frontend.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
5#include "ccf/app_interface.h"
6#include "ccf/node_context.h"
8#include "node/rpc/frontend.h"
9
10namespace ccf
11{
13 {
14 protected:
15 std::unique_ptr<ccf::endpoints::EndpointRegistry> endpoints;
16
17 public:
19 NetworkState& network,
20 std::unique_ptr<ccf::endpoints::EndpointRegistry>&& endpoints_,
21 ccf::AbstractNodeContext& context_) :
22 RpcFrontend(*network.tables, *endpoints_, context_),
23 endpoints(std::move(endpoints_))
24 {}
25 };
26}
Definition frontend.h:34
ccf::kv::Store & tables
Definition frontend.h:36
Definition user_frontend.h:13
std::unique_ptr< ccf::endpoints::EndpointRegistry > endpoints
Definition user_frontend.h:15
UserRpcFrontend(NetworkState &network, std::unique_ptr< ccf::endpoints::EndpointRegistry > &&endpoints_, ccf::AbstractNodeContext &context_)
Definition user_frontend.h:18
Definition app_interface.h:14
STL namespace.
Definition node_context.h:12
Definition network_state.h:12