8 unstable releases (3 breaking)

0.4.0 Nov 11, 2019
0.3.0 Oct 29, 2019
0.2.2-beta.3 Oct 10, 2019
0.2.2-beta.1 Sep 28, 2019
0.1.0 Mar 11, 2019

#1089 in Text processing

Download history 38/week @ 2023-11-14 38/week @ 2023-11-21 36/week @ 2023-11-28 20/week @ 2023-12-05 22/week @ 2023-12-12 37/week @ 2023-12-19 32/week @ 2023-12-26 23/week @ 2024-01-02 31/week @ 2024-01-09 21/week @ 2024-01-16 23/week @ 2024-01-23 13/week @ 2024-01-30 29/week @ 2024-02-06 42/week @ 2024-02-13 66/week @ 2024-02-20 82/week @ 2024-02-27

221 downloads per month
Used in 16 crates (15 directly)

Apache-2.0

94KB
2.5K SLoC

interledger-service

This is the core abstraction used across the Interledger.rs implementation.

Inspired by tower, all of the components of this implementation are "services" that take a request type and asynchronously return a result. Every component uses the same interface so that services can be reused and combined into different bundles of functionality.

The Interledger service traits use requests that contain ILP Prepare packets and the related from/to Accounts and asynchronously return either an ILP Fullfill or Reject packet. Implementations of Stores (wrappers around databases) can attach additional information to the Account records, which are then passed through the service chain.

Example Service Bundles

The following examples illustrate how different Services can be chained together to create different bundles of functionality.

SPSP Sender

SPSP Client --> ValidatorService --> RouterService --> HttpOutgoingService

Connector

HttpServerService --> ValidatorService --> RouterService --> BalanceAndExchangeRateService --> ValidatorService --> HttpOutgoingService

STREAM Receiver

HttpServerService --> ValidatorService --> StreamReceiverService

Dependencies

~5.5–8.5MB
~172K SLoC