CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
node_info_network.h File Reference
#include "ccf/ds/json.h"
#include "ccf/ds/nonstd.h"
#include "ccf/http_configuration.h"
#include "ccf/service/acme_client_config.h"
#include <string>

Go to the source code of this file.

Classes

struct  ccf::Endorsement
 
struct  ccf::NodeInfoNetwork_v1
 
struct  ccf::RedirectionResolverConfig
 
struct  ccf::NodeInfoNetwork_v2
 Node network information. More...
 
struct  ccf::NodeInfoNetwork_v2::NetInterface
 Network interface description. More...
 
struct  ccf::NodeInfoNetwork_v2::NetInterface::Redirections
 
struct  ccf::NodeInfoNetwork_v2::ACME
 ACME configuration description. More...
 
struct  ccf::NodeInfoNetwork
 
struct  formatter< ccf::Authority >
 

Namespaces

namespace  ccf
 

Typedefs

using ccf::ApplicationProtocol = std::string
 

Enumerations

enum class  ccf::Authority { ccf::NODE , ccf::SERVICE , ccf::ACME , ccf::UNSECURED }
 
enum class  ccf::RedirectionResolutionKind { ccf::NodeByRole , ccf::StaticAddress }
 

Functions

 ccf::DECLARE_JSON_ENUM (Authority, {{Authority::NODE, "Node"}, {Authority::SERVICE, "Service"}, {Authority::ACME, "ACME"}, {Authority::UNSECURED, "Unsecured"}})
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (Endorsement)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (Endorsement, authority)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (Endorsement, acme_configuration)
 
 ccf::DECLARE_JSON_TYPE (NodeInfoNetwork_v1)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v1, rpchost, pubhost, nodehost, nodeport, rpcport, pubport)
 
 ccf::DECLARE_JSON_ENUM (RedirectionResolutionKind, {{RedirectionResolutionKind::NodeByRole, "NodeByRole"}, {RedirectionResolutionKind::StaticAddress, "StaticAddress"}})
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (RedirectionResolverConfig)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (RedirectionResolverConfig, kind)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (RedirectionResolverConfig, target)
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (NodeInfoNetwork_v2::NetInterface::Redirections)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v2::NetInterface::Redirections)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (NodeInfoNetwork_v2::NetInterface::Redirections, to_primary, to_backup)
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (NodeInfoNetwork_v2::NetInterface)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v2::NetInterface, bind_address)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (NodeInfoNetwork_v2::NetInterface, endorsement, max_open_sessions_soft, max_open_sessions_hard, published_address, protocol, app_protocol, http_configuration, accepted_endpoints, forwarding_timeout_ms, redirections)
 
 ccf::DECLARE_JSON_TYPE (NodeInfoNetwork_v2::ACME)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v2::ACME, configurations)
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (NodeInfoNetwork_v2)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (NodeInfoNetwork_v2, node_to_node_interface, rpc_interfaces)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (NodeInfoNetwork_v2, acme, will_locally_seal_ledger_secrets)
 
void ccf::to_json (nlohmann::json &j, const NodeInfoNetwork &nin)
 
void ccf::from_json (const nlohmann::json &j, NodeInfoNetwork &nin)