mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
22 lines
620 B
Nim
22 lines
620 B
Nim
import waku/common/broker/[request_broker, multi_request_broker]
|
|
|
|
import waku/api/types
|
|
import waku/node/health_monitor/[protocol_health, topic_health]
|
|
import waku/waku_core/topics
|
|
|
|
export protocol_health, topic_health
|
|
|
|
RequestBroker(sync):
|
|
type RequestNodeHealth* = object
|
|
healthStatus*: NodeHealth
|
|
|
|
RequestBroker(sync):
|
|
type RequestRelayTopicsHealth* = object
|
|
topicHealth*: seq[tuple[topic: PubsubTopic, health: TopicHealth]]
|
|
|
|
proc signature(topics: seq[PubsubTopic]): Result[RequestRelayTopicsHealth, string]
|
|
|
|
MultiRequestBroker:
|
|
type RequestProtocolHealth* = object
|
|
healthStatus*: ProtocolHealth
|