|
| 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 (const std::string &method_prefix_) |
| |
| virtual | ~EndpointRegistry () |
| |
| virtual Endpoint | make_endpoint (const std::string &method, RESTVerb verb, const EndpointFunction &f, const AuthnPolicies &ap) |
| |
| virtual Endpoint | make_read_only_endpoint (const std::string &method, RESTVerb verb, const ReadOnlyEndpointFunction &f, const AuthnPolicies &ap) |
| |
| virtual Endpoint | make_endpoint_with_local_commit_handler (const std::string &method, RESTVerb verb, const EndpointFunction &f, const LocallyCommittedEndpointFunction &l, const AuthnPolicies &ap) |
| |
| virtual Endpoint | make_read_only_endpoint_with_local_commit_handler (const std::string &method, RESTVerb verb, const ReadOnlyEndpointFunction &f, const LocallyCommittedEndpointFunction &l, 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 &) |
| |
| virtual void | init_handlers () |
| |
| virtual EndpointDefinitionPtr | find_endpoint (ccf::kv::Tx &, ccf::RpcContext &rpc_ctx) |
| |
| virtual void | execute_endpoint (EndpointDefinitionPtr e, EndpointContext &args) |
| |
| virtual void | execute_endpoint_locally_committed (EndpointDefinitionPtr e, CommandEndpointContext &args, const TxID &tx_id) |
| |
| virtual std::set< RESTVerb > | get_allowed_verbs (ccf::kv::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) |
| |
| void | set_consensus (ccf::kv::Consensus *c) |
| |
| void | set_history (ccf::kv::TxHistory *h) |
| |
| virtual void | handle_event_request_completed (const ccf::endpoints::RequestCompletedEvent &event) |
| |
| virtual void | handle_event_dispatch_failed (const ccf::endpoints::DispatchFailedEvent &event) |
| |
| virtual bool | apply_uncommitted_tx_backpressure () const |
| |
The EndpointRegistry records the user-defined endpoints for a given CCF application.
This is the abstract base for several more complete registrys. For a versioned API wrapping access to common CCF properties, see BaseEndpointRegistry. For implementation of several common endpoints see CommonEndpointRegistry.