logos-messaging-nim/logos_delivery/api/logos_delivery_api.nim

12 lines
382 B
Nim

import chronos, results
# Structural API contract for the top-level entry point, implemented by
# `LogosDelivery` (the aggregate owning one instance of each API layer).
type LogosDeliveryApi* = concept ld
# --- lifecycle ---
start(ld) is Future[Result[void, string]]
stop(ld) is Future[Result[void, string]]
# --- health ---
isOnline(ld) is Future[Result[bool, string]]