Expand description
API for iroh-docs replicas
Structs§
- Author
Heads - Timestamps of the latest entry for each author.
- Entry
- A single entry in a
Replica
- Entry
Signature - Signature over an entry.
- Read
Only - Error that occurs trying to access the
NamespaceSecret
of a read-onlyCapability
. - Record
- The data part of an entry in a
Replica
. - Record
Identifier - The identifier of a record.
- Replica
- Local representation of a mutable, synchronizable key-value store.
- Replica
Info - In memory information about an open replica.
- Signed
Entry - A signed entry.
- Sync
Outcome - Outcome of a sync operation.
Enums§
- Capability
- The capability of the namespace.
- Capability
Error - Errors for capability operations
- Capability
Kind - Kind of capability of the namespace.
- Content
Status - Whether the content status is available on a node.
- Event
- Event emitted by sync when entries are added.
- Insert
Error - Error emitted when inserting entries into a
Replica
failed - Insert
Origin - Whether an entry was inserted locally or by a remote peer.
- Validation
Failure - Reason why entry validation failed
Constants§
- MAX_
TIMESTAMP_ FUTURE_ SHIFT - Max time in the future from our wall clock time that we accept entries for. Value is 10 minutes.
Type Aliases§
- Content
Status Callback - Callback that may be set on a replica to determine the availability status for a content hash.
- Peer
IdBytes - Byte representation of a
PeerId
fromiroh-net
. - Protocol
Message - Protocol message for the set reconciliation protocol.