syndicate_utils/src/syndesizer.nim

41 lines
1.0 KiB
Nim
Raw Normal View History

# SPDX-FileCopyrightText: ☭ Emery Hemingway
# SPDX-License-Identifier: Unlicense
## Syndicate multitool.
2024-01-08 18:47:37 +00:00
import syndicate, syndicate/relays, syndicate/actors/timers
2024-01-10 08:16:42 +00:00
const
withPostgre* {.booldefine.}: bool = true
withSqlite* {.booldefine.}: bool = true
2024-01-10 08:16:42 +00:00
2024-01-08 19:42:46 +00:00
import ./syndesizer/[
2024-01-09 11:21:30 +00:00
cache_actor,
2024-01-09 18:49:54 +00:00
file_system_usage,
2024-01-09 11:21:30 +00:00
json_socket_translator,
json_translator,
2024-01-14 10:52:17 +00:00
pulses,
2024-02-09 15:24:45 +00:00
xml_translator,
xslt_actor]
2024-01-10 08:16:42 +00:00
when withPostgre:
import ./syndesizer/postgre_actor
when withSqlite:
import ./syndesizer/sqlite_actor
runActor("syndesizer") do (turn: var Turn; root: Cap):
connectStdio(turn, root)
2024-01-08 18:47:37 +00:00
discard spawnTimers(turn, root)
2024-01-08 19:42:46 +00:00
discard spawnCacheActor(turn, root)
2024-01-09 18:49:54 +00:00
discard spawnFileSystemUsageActor(turn, root)
discard spawnJsonSocketTranslator(turn, root)
2024-01-08 20:10:55 +00:00
discard spawnJsonStdioTranslator(turn, root)
2024-01-14 10:52:17 +00:00
discard spawnPulseActor(turn, root)
2024-01-20 13:28:36 +00:00
discard spawnXmlTranslator(turn, root)
2024-02-09 15:24:45 +00:00
discard spawnXsltActor(turn, root)
2024-01-10 08:16:42 +00:00
when withPostgre:
discard spawnPostgreActor(turn, root)
2024-01-09 11:21:30 +00:00
when withSqlite:
discard spawnSqliteActor(turn, root)