Expand description
Data-type agnostic interfaces for implementing sync protocols and managers which can be used
stand-alone or as part of the local-first stack provided by
p2panda-net.
Users can implement two-party sync protocols over a Sink / Stream pair with the Protocol
trait and a system for instantiating and orchestrating concurrent sync sessions with the
Manager trait.
Concrete implementations for performing sync over p2panda append-only logs associated with a
generic topic can be found in the manager and protocols modules.
For most high-level users p2panda-net
will be the entry point into local-first development with p2panda. Interfaces in this crate
are intended for cases where users want to integrate their own base convergent data-type and
sync protocols as a module in the
p2panda-net stack.
Modules§
- manager
- Manager for initiating and orchestrating topic log sync sessions.
- protocols
- Implementations of the
Protocoltrait for two-party topic handshake and sync. - traits
- Interfaces for implementing sync protocols and managers.
Structs§
- From
Sync - Events which are emitted from a manager.
- Session
Config - Configuration object for instantiating sync sessions.
Enums§
- ToSync
- Message sent to running sync sessions.