|
ipfs-chromium
|
Data from IPNS record modulo the verification parts. More...
#include <include/ipfs_client/ipns_record.h>

Public Member Functions | |
| ValidatedIpns () | |
| Create an invalid default object. | |
| ValidatedIpns (IpnsCborEntry const &entry) | |
| ValidatedIpns (ValidatedIpns &&) | |
| ValidatedIpns (ValidatedIpns const &) | |
| ValidatedIpns & | operator= (ValidatedIpns const &) |
| std::string | Serialize () const |
| Turn into a well-defined list of bytes. | |
Static Public Member Functions | |
| static ValidatedIpns | Deserialize (std::string bytes) |
| Create a ValidatedIpns from untyped bytes. | |
Public Attributes | |
| std::string | value |
| The path the record claims the IPNS name points to. | |
| std::time_t | use_until |
| An expiration timestamp. | |
| std::time_t | cache_until |
| Inspired by TTL. | |
| std::uint64_t | sequence |
| The version of the record. | |
| std::int64_t | resolution_ms |
| How long it took to fetch the record. | |
| std::time_t | fetch_time = std::time(nullptr) |
| When the record was fetched. | |
| std::string | gateway_source |
| Who gave us this record? | |
Data from IPNS record modulo the verification parts.
|
explicit |
| entry | IPNS entry known to be valid |
|
static |
Create a ValidatedIpns from untyped bytes.
| bytes | - Output from a former call to Serialize() |
| std::uint64_t ipfs::ValidatedIpns::sequence |
The version of the record.
Higher sequence numbers obsolete lower ones