|
| | LoggerHandlers (ccf::AbstractNodeContext &context) |
| |
| void | init_handlers () override |
| |
| | UserEndpointRegistry (ccf::AbstractNodeContext &context) |
| |
| void | handle_event_request_completed (const ccf::endpoints::RequestCompletedEvent &event) override |
| |
| void | handle_event_dispatch_failed (const ccf::endpoints::DispatchFailedEvent &event) override |
| |
| | CommonEndpointRegistry (const std::string &method_prefix_, ccf::AbstractNodeContext &context_) |
| |
| | BaseEndpointRegistry (const std::string &method_prefix_, ccf::AbstractNodeContext &context_) |
| |
| ApiResult | get_view_history_v1 (std::vector< ccf::TxID > &history, ccf::View since=1) |
| |
| ApiResult | get_view_history_v2 (std::vector< ccf::TxID > &history, ccf::View since, ccf::InvalidArgsReason &reason) |
| |
| ApiResult | get_status_for_txid_v1 (ccf::View view, ccf::SeqNo seqno, ccf::TxStatus &tx_status) |
| |
| ApiResult | get_last_committed_txid_v1 (ccf::View &view, ccf::SeqNo &seqno) |
| |
| ApiResult | generate_openapi_document_v1 (ccf::kv::ReadOnlyTx &tx, const std::string &title, const std::string &description, const std::string &document_version, nlohmann::json &document) |
| |
| ApiResult | get_quote_for_this_node_v1 (ccf::kv::ReadOnlyTx &tx, QuoteInfo "e_info) |
| |
| ApiResult | get_id_for_this_node_v1 (NodeId &node_id) |
| |
| ApiResult | get_quotes_for_all_trusted_nodes_v1 (ccf::kv::ReadOnlyTx &tx, std::map< NodeId, QuoteInfo > "es) |
| |
| ApiResult | get_view_for_seqno_v1 (ccf::SeqNo seqno, ccf::View &view) |
| |
| ApiResult | get_user_data_v1 (ccf::kv::ReadOnlyTx &tx, const UserId &user_id, nlohmann::json &user_data) |
| |
| ApiResult | get_member_data_v1 (ccf::kv::ReadOnlyTx &tx, const MemberId &member_id, nlohmann::json &member_data) |
| |
| ApiResult | get_user_cert_v1 (ccf::kv::ReadOnlyTx &tx, const UserId &user_id, ccf::crypto::Pem &user_cert_pem) |
| |
| ApiResult | get_member_cert_v1 (ccf::kv::ReadOnlyTx &tx, const MemberId &member_id, ccf::crypto::Pem &member_cert_pem) |
| |
| ApiResult | get_untrusted_host_time_v1 (::timespec &time) |
| |
| template<typename T > |
| bool | get_path_param (const ccf::PathParams ¶ms, const std::string ¶m_name, T &value, std::string &error) |
| |
| template<> |
| bool | get_path_param (const ccf::PathParams ¶ms, const std::string ¶m_name, std::string &value, std::string &error) |
| |
| | EndpointRegistry (std::string method_prefix_) |
| |
| | ~EndpointRegistry () override=default |
| |
| virtual Endpoint | make_read_only_endpoint (const std::string &method, RESTVerb verb, const ReadOnlyEndpointFunction &f, const AuthnPolicies &ap) |
| |
| virtual Endpoint | make_command_endpoint (const std::string &method, RESTVerb verb, const CommandEndpointFunction &f, const AuthnPolicies &ap) |
| |
| void | install (Endpoint &endpoint) override |
| |
| void | set_default (EndpointFunction f, const AuthnPolicies &ap) |
| |
| virtual void | build_api (nlohmann::json &document, ccf::kv::ReadOnlyTx &tx) |
| |
| virtual EndpointDefinitionPtr | find_endpoint (ccf::kv::Tx &tx, ccf::RpcContext &rpc_ctx) |
| |
| virtual void | execute_endpoint (EndpointDefinitionPtr e, EndpointContext &ctx) |
| |
| virtual void | execute_endpoint_locally_committed (EndpointDefinitionPtr e, CommandEndpointContext &ctx, const TxID &tx_id) |
| |
| virtual std::set< RESTVerb > | get_allowed_verbs (ccf::kv::Tx &tx, const ccf::RpcContext &rpc_ctx) |
| |
| virtual bool | request_needs_root (const ccf::RpcContext &rpc_ctx) |
| |
| virtual void | report_ambiguous_templated_path (const std::string &path, const std::vector< EndpointDefinitionPtr > &matches) |
| |
| virtual void | tick (std::chrono::milliseconds duration) |
| |
| void | set_consensus (ccf::kv::Consensus *c) |
| |
| void | set_history (ccf::kv::TxHistory *h) |
| |
| virtual bool | apply_uncommitted_tx_backpressure () const |
| |
| virtual | ~Installer ()=default |
| |