Expand description
§Helia Utils
Shared utilities and implementations for the Helia IPFS implementation.
This crate provides concrete implementations of the traits defined in helia-interface,
including the main Helia struct, blockstore implementations, and utility functions.
Re-exports§
pub use blockstore::SledBlockstore;pub use blockstore_with_bitswap::BlockstoreWithBitswap;pub use datastore::SledDatastore;pub use helia::DummyRouting;pub use helia::HeliaImpl;pub use helia::SimplePins;pub use libp2p_behaviour::create_swarm;pub use libp2p_behaviour::create_swarm_with_keypair;pub use libp2p_behaviour::HeliaBehaviour;pub use logger::TracingLogger;pub use metrics::SimpleMetrics;
Modules§
- blocks
- Block storage and retrieval interfaces
- blockstore
- Blockstore implementations
- blockstore_
with_ bitswap - Blockstore with Bitswap integration
- datastore
- Datastore implementations
- errors
- Error types for Helia operations
- helia
- Main Helia implementation
- libp2p_
behaviour - libp2p behavior implementation for Helia
- logger
- Logger implementations
- metrics
- Metrics implementations
- pins
- Pinning interface for content addressing
- routing
- Routing interface for peer and content discovery
Structs§
- Abort
Options - Options that include an abort signal for canceling operations
- AddOptions
- Options for adding pins
- Blockstore
Config - Configuration for the blockstore
- Datastore
Config - Configuration for the datastore
- Delete
Many Options - Options for deleting blocks
- Find
Peers Options - Options for finding peers
- Find
Providers Options - Options for finding providers
- GcOptions
- Garbage collection options
- GetAll
Options - Options for getting all blocks
- GetBlock
Options - Options for getting a block
- GetMany
Options - Options for getting multiple blocks
- GetOptions
- Options for getting peer info
- HasOptions
- Options for checking if blocks exist
- Helia
Config - Configuration for creating a new Helia node
- Input
Pair - Input pair that may not have been stored yet
- IsPinned
Options - Options for checking if content is pinned
- Logger
Config - Configuration for the logger
- LsOptions
- Options for listing pins
- Pair
- A key-value pair for block operations
- Peer
Info - Information about a peer
- Progress
Event - Progress event for tracking operation status
- Progress
Options - Options for operations that support progress tracking
- Provide
Options - Options for providing content
- Provider
- A provider can supply content for a CID
- Provider
Options - Options for specifying content providers
- PutBlock
Options - Options for putting a block
- PutMany
Options - Options for putting multiple blocks
- PutOptions
- Options for putting records
- RmOptions
- Options for removing pins
- Routing
Options - Options for routing operations
- Routing
Record - A routing record
Enums§
- AddPin
Events - Progress events for adding pins
- AddPin
Progress Events - Combined progress events for adding pins
- Delete
Many Blocks Progress Events - Progress events for deleting blocks
- GcEvent
- Events emitted during garbage collection
- GetAll
Blocks Progress Events - Progress events for getting all blocks
- GetBlock
Progress Events - Progress events for getting a block
- GetMany
Blocks Progress Events - Progress events for getting multiple blocks
- HasBlock
Progress Events - Progress events for checking if a block exists
- Helia
Error - Main error type for Helia operations
- Helia
Event - Events emitted by a Helia node
- PinMetadata
Value - Valid metadata values for pins
- PinType
- Types of pins
- Provider
Info - Information about a content provider
- PutBlock
Progress Events - Progress events for putting a single block
- PutMany
Blocks Progress Events - Progress events for putting multiple blocks
- Transport
Method - Methods available for content transport
Traits§
- Blocks
- Block storage interface
- Codec
- IPLD codec trait
- Codec
Loader - Codec loader for loading IPLD codecs
- Component
Logger - Component logger for structured logging
- Datastore
- Key-value datastore interface
- Hasher
- Multihash hasher trait
- Hasher
Loader - Hasher loader for loading multihash hashers
- Helia
- Non-generic Helia trait for backward compatibility and trait objects
- Helia
With Libp2p - Generic Helia trait with libp2p type parameter for concrete implementations
- Metrics
- Metrics collection interface
- Pins
- Pinning interface
- Routing
- Routing interface for peer and content discovery
Type Aliases§
- Await
- Type alias for awaitable results
- Await
Iterable - Type alias for async iterables/streams
- Helia
Event Receiver - Type alias for event receiver