Expand description
Kitsune2 API contains kitsune module traits and the basic types required to define the api of those traits.
If you want to use Kitsune2 itself, please see the kitsune2 crate.
Modules§
- doc
- Documentation module for the Kitsune2 project.
Structs§
- AgentId
- Identifies an agent to be tracked as part of a Kitsune space.
- Agent
Info - AgentInfo stores metadata related to agents.
- Agent
Info Signed - Signed agent information.
- Builder
- The general Kitsune2 builder. This contains both configuration and factory instances, allowing construction of runtime module instances.
- Config
- Kitsune configuration.
- Default
Transport - A high-level wrapper around a low-level DynTxImp transport implementation.
- DhtSegment
State - DHT segment state.
- DynInner
Error - A clonable trait-object inner error.
- Fetch
Request - A fetch request.
- Fetch
Response - A fetch response.
- Fetch
State Summary - Summary of the fetch state.
- Gossip
Round State Summary - Gossip round state summary.
- Gossip
State Summary - Gossip state summary.
- Gossip
State Summary Request - Request for a gossip state summary.
- Id
- Base data identity type meant for newtyping. You probably want AgentId or OpId.
- K2Fetch
Message - Fetch message.
- K2Proto
- A Kitsune2 wire protocol message.
- K2Publish
Message - Publish message.
- MetaOp
- An op with metadata.
- Op
- An op.
- OpId
- Identifies an op to be tracked by Kitsune.
- Peer
Meta - Peer metadata dump.
- Publish
Agent - A publish agent message.
- Publish
Ops - A publish ops message.
- SpaceId
- Identifies a space to be tracked by Kitsune.
- Stored
Op - An op that has been stored by the Kitsune host.
- Timestamp
- Kitsune2 timestamp.
- Transport
Connection Stats - Stats for a single transport connection.
- Transport
Stats - Stats for a transport connection.
- TxImp
Hnd - This is the low-level backend transport handler designed to work with DefaultTransport. Construct using (TxImpHnd::new), with a high-level DynTxHandler, then call DefaultTransport::create to return the high-level handler from the TransportFactory.
- Url
- A validated Kitsune2 Url.
Enums§
- DhtArc
- The definition of a storage arc compatible with the concept of storage and querying of items in a store that fall within that arc.
- Fetch
Message Type - Fetch message type.
- K2Error
- The core kitsune2 error type. This type is used in all external kitsune apis as well as internally in some modules.
- K2Wire
Type - Enumeration of the types of messages that can be sent between peers.
- Publish
Message Type - Publish message type.
Constants§
- KEY_
PREFIX_ ROOT - Key prefix for items at the root level of the peer meta store.
- META_
KEY_ UNRESPONSIVE - Meta key for unresponsive URLs.
- UNIX_
TIMESTAMP - The unix epoch timestamp.
Traits§
- Bootstrap
- Method for bootstrapping WAN discovery of peers.
- Bootstrap
Factory - A factory for constructing Bootstrap instances.
- Fetch
- Trait for implementing a fetch module to fetch ops from other agents.
- Fetch
Factory - A factory for creating Fetch instances.
- Gossip
- Represents the ability to sync DHT data with other agents through background communication.
- Gossip
Factory - A factory for constructing Gossip instances.
- Kitsune
- The top-level Kitsune2 api trait.
- Kitsune
Factory - A factory for constructing Kitsune instances.
- Kitsune
Handler - Handler for events coming out of Kitsune2.
- Local
Agent - A “Local” agent is an agent that is connected to the local Kitsune2 node, and is able to sign messages and agent infos.
- Local
Agent Store - A store for local agents.
- Local
Agent Store Factory - A factory for constructing LocalAgentStore instances.
- OpStore
- The API that a kitsune2 host must implement to provide data persistence for kitsune2.
- OpStore
Factory - A factory for constructing OpStore instances.
- Peer
Meta Store - A store for peer metadata.
- Peer
Meta Store Factory - A factory for constructing PeerMetaStore instances.
- Peer
Store - Represents the ability to store and query agents.
- Peer
Store Factory - A factory for constructing PeerStore instances.
- Publish
- Trait for implementing a publish module to publish ops to other peers.
- Publish
Factory - A factory for creating Publish instances.
- Signer
- Defines a type capable of cryptographic signatures.
- Space
- Represents a unique dht space within which to communicate with peers.
- Space
Factory - A factory for constructing Space instances.
- Space
Handler - Handler for events coming out of Kitsune2 such as messages from peers.
- Transport
- A high-level wrapper around a low-level DynTxImp transport implementation.
- Transport
Factory - A factory for constructing Transport instances.
- TxBase
Handler - Base trait for transport handler events. The other three handler types are all based on this trait.
- TxHandler
- Handler for whole transport-level events.
- TxImp
- A low-level transport implementation.
- TxModule
Handler - Handler for module-related events.
- TxSpace
Handler - Handler for space-related events.
- Verifier
- Defines a type capable of cryptographic verification.
Functions§
- decode_
ids - Decode a list of bytes into a list of typed IDs.
- encode_
ids - Encode a list of typed IDs into a list of bytes.
- serialize_
publish_ agent - Serialize AgentInfoSigned
- serialize_
publish_ agent_ message - Serialize agent publish message.
- serialize_
publish_ ops_ message - Serialize list of op ids to fetch request message.
- serialize_
request - Serialize list of op ids to request.
- serialize_
request_ message - Serialize list of op ids to fetch request message.
- serialize_
response - Serialize list of ops to response.
- serialize_
response_ message - Serialize list of ops to fetch response message.
Type Aliases§
- BoxFut
- Boxed future type.
- Config
Update Cb - A callback to be invoked if the config value is updated at runtime.
- Display
Cb - The function signature for
Id
display overrides. - DynBootstrap
- Trait-object Bootstrap.
- DynBootstrap
Factory - Trait-object BootstrapFactory.
- DynFetch
- Trait object Fetch.
- DynFetch
Factory - Trait object FetchFactory.
- DynGossip
- Trait-object Gossip.
- DynGossip
Factory - Trait-object GossipFactory.
- DynKitsune
- Trait-object Kitsune.
- DynKitsune
Factory - Trait-object KitsuneFactory.
- DynKitsune
Handler - Trait-object KitsuneHandler.
- DynLocal
Agent - Trait-object LocalAgent.
- DynLocal
Agent Store - Trait-object version of kitsune2 LocalAgentStore.
- DynLocal
Agent Store Factory - Trait-object LocalAgentStoreFactory.
- DynOp
Store - Trait-object OpStore.
- DynOp
Store Factory - Trait-object OpStoreFactory.
- DynPeer
Meta Store - Trait-object version of kitsune2 PeerMetaStore.
- DynPeer
Meta Store Factory - Trait-object PeerMetaStoreFactory.
- DynPeer
Store - Trait-object PeerStore.
- DynPeer
Store Factory - Trait-object PeerStoreFactory.
- DynPublish
- Trait object Publish.
- DynPublish
Factory - Trait object PublishFactory.
- DynSpace
- Trait-object Space.
- DynSpace
Factory - Trait-object SpaceFactory.
- DynSpace
Handler - Trait-object SpaceHandler.
- DynTransport
- Trait-object Transport.
- DynTransport
Factory - Trait-object TransportFactory.
- DynTx
Handler - Trait-object TxHandler.
- DynTx
Imp - Trait-object TxImp.
- DynTx
Module Handler - Trait-object TxModuleHandler.
- DynTx
Space Handler - Trait-object TxSpaceHandler.
- DynVerifier
- Trait-object Verifier.
- K2Result
- The core kitsune2 result type.
- LocCb
- The function signature for
Id
location derivation. - Weak
DynTransport - A weak trait-object Transport.