CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
service.h File Reference
#include "ccf/crypto/pem.h"
#include "ccf/ds/json.h"
#include "ccf/service/map.h"
#include "ccf/tx_id.h"

Go to the source code of this file.

Classes

struct  ccf::ServiceInfo
 

Namespaces

namespace  ccf
 
namespace  ccf::Tables
 

Typedefs

using ccf::Service = ServiceValue< ServiceInfo >
 

Enumerations

enum class  ccf::ServiceStatus { ccf::OPENING = 1 , ccf::OPEN = 2 , ccf::WAITING_FOR_RECOVERY_SHARES = 3 , ccf::RECOVERING = 4 }
 

Functions

 ccf::DECLARE_JSON_ENUM (ServiceStatus, {{ServiceStatus::OPENING, "Opening"}, {ServiceStatus::OPEN, "Open"}, {ServiceStatus::WAITING_FOR_RECOVERY_SHARES, "WaitingForRecoveryShares"}, {ServiceStatus::RECOVERING, "Recovering"}})
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (ServiceInfo)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (ServiceInfo, cert, status)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (ServiceInfo, previous_service_identity_version, recovery_count, service_data, current_service_create_txid)