mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-08-08 21:03:25 +00:00
Squash of the initial structured-API POC work (1d684bf8..c37dcf84): - WIP: structured Broker API interface + impl (Logos Delivery facade) - Restructured folders; interfaces under logos_delivery/api; MessagingClient and ReliableChannelManager reworked as BrokerInterface/BrokerImplement - API types elevated under logos_delivery/api/types.nim - onelogosdelivery target; wakunode2 / FFI lib build fixes - nim-brokers integration + version bumps; git_version into FFI lib version - compile fixes for tests
36 lines
968 B
Nim
36 lines
968 B
Nim
## Main module for using nwaku as a Nimble library
|
|
##
|
|
## This module re-exports the public API for creating and managing Waku nodes
|
|
## when using nwaku as a library dependency.
|
|
|
|
import logos_delivery/waku/api
|
|
export api
|
|
|
|
import logos_delivery/waku/factory/waku
|
|
export waku
|
|
|
|
import logos_delivery/api/logos_delivery_interface
|
|
export logos_delivery_interface
|
|
|
|
import logos_delivery/logos_delivery
|
|
|
|
import brokers/api_library # registerBrokerLibrary
|
|
|
|
# `git_version` is exported as a `{.strdefine.}` by several modules in the graph
|
|
# (waku.nim, waku_node.nim, nim-ffi), so it's ambiguous unqualified. Pin to
|
|
# waku's and expose an unambiguous local const for registerBrokerLibrary; the
|
|
# build injects `-d:git_version="$(git describe …)"`.
|
|
const ldGitVersion = waku.git_version
|
|
|
|
registerBrokerLibrary:
|
|
name:
|
|
"logosdelivery"
|
|
version:
|
|
ldGitVersion
|
|
mainClass:
|
|
LogosDeliveryInterface
|
|
initializeRequest:
|
|
StartAsClient
|
|
shutdownRequest:
|
|
Shutdown
|