Crate taskchampion_sync_server_core

Source
Expand description

This crate implements the core logic of the taskchampion sync protocol.

This should be considered a reference implementation, with the protocol documentation. representing the authoritative definition of the protocol. Other implementations are encouraged.

This crate uses an abstract storage backend. Note that this does not implement the HTTP-specific portions of the protocol, nor provide any storage implementations.

§API Methods

The following API methods are implemented. These methods are documented in more detail in the protocol documentation.

Each API method takes:

  • StorageTxn to access storage. Methods which modify storage will commit the transaction before returning.
  • ServerConfig providing basic configuration for the server’s behavior.
  • client_id and a Client providing the client metadata.

Structs§

  • A representation of stored metadata about a client.
  • In-memory storage for testing and experimentation.
  • ServerConfig contains configuration parameters for the server.
  • Metadata about a snapshot, not including the snapshot data itself.

Enums§

Constants§

Traits§

Functions§

  • Implementation of the AddSnapshot protocol transaction
  • Implementation of the AddVersion protocol transaction
  • Implementation of the GetChildVersion protocol transaction.
  • Implementation of the GetSnapshot protocol transaction

Type Aliases§