CCF
Loading...
Searching...
No Matches
src
node
rpc
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
"
7
#include "
node/network_state.h
"
8
#include "
node/rpc/frontend.h
"
9
10
namespace
ccf
11
{
12
class
UserRpcFrontend
:
public
RpcFrontend
13
{
14
protected
:
15
std::unique_ptr<ccf::endpoints::EndpointRegistry>
endpoints
;
16
17
public
:
18
UserRpcFrontend
(
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
}
app_interface.h
ccf::RpcFrontend
Definition
frontend.h:34
ccf::RpcFrontend::tables
ccf::kv::Store & tables
Definition
frontend.h:36
ccf::UserRpcFrontend
Definition
user_frontend.h:13
ccf::UserRpcFrontend::endpoints
std::unique_ptr< ccf::endpoints::EndpointRegistry > endpoints
Definition
user_frontend.h:15
ccf::UserRpcFrontend::UserRpcFrontend
UserRpcFrontend(NetworkState &network, std::unique_ptr< ccf::endpoints::EndpointRegistry > &&endpoints_, ccf::AbstractNodeContext &context_)
Definition
user_frontend.h:18
frontend.h
ccf
Definition
app_interface.h:14
std
STL namespace.
network_state.h
node_context.h
ccf::AbstractNodeContext
Definition
node_context.h:12
ccf::NetworkState
Definition
network_state.h:12
Generated by
1.9.8