32 std::unique_ptr<AuthnIdentity>
caller;
37 return dynamic_cast<const T*
>(
caller.get());
43 const T* ident = try_get_caller<T>();
46 throw std::logic_error(
"Asked for unprovided identity type");
std::function< void(CommandEndpointContext &args)> CommandEndpointFunction
Definition endpoint_context.h:52
std::function< void(ReadOnlyEndpointContext &args)> ReadOnlyEndpointFunction
Definition endpoint_context.h:80
std::function< void(CommandEndpointContext &ctx, const ccf::TxID &txid)> LocallyCommittedEndpointFunction
Definition endpoint_context.h:66
std::function< void(EndpointContext &args)> EndpointFunction
Definition endpoint_context.h:63
Definition app_interface.h:14
Definition endpoint_context.h:24
const T & get_caller()
Definition endpoint_context.h:41
CommandEndpointContext(const std::shared_ptr< ccf::RpcContext > &r)
Definition endpoint_context.h:27
virtual ~CommandEndpointContext()=default
std::shared_ptr< ccf::RpcContext > rpc_ctx
Definition endpoint_context.h:31
const T * try_get_caller()
Definition endpoint_context.h:35
std::unique_ptr< AuthnIdentity > caller
Definition endpoint_context.h:32
Definition endpoint_context.h:55
EndpointContext(const std::shared_ptr< ccf::RpcContext > &r, ccf::kv::Tx &t)
Definition endpoint_context.h:56
ccf::kv::Tx & tx
Definition endpoint_context.h:61
Definition endpoint_context.h:70
ReadOnlyEndpointContext(const std::shared_ptr< ccf::RpcContext > &r, ccf::kv::ReadOnlyTx &t)
Definition endpoint_context.h:71
ccf::kv::ReadOnlyTx & tx
Definition endpoint_context.h:77