logos-messaging-nim/examples/lightpush_publisher_mix_config.nim

45 lines
914 B
Nim
Raw Normal View History

2025-03-29 05:56:45 +05:30
import
confutils/defs
type
LPMixConf* = object
destPeerAddr* {.
desc: "Destination peer address.",
name: "dp-addr",
}: string
destPeerId* {.
desc: "Destination peer ID.",
name: "dp-id",
}: string
2025-03-29 20:16:15 +05:30
pxAddr* {.
desc: "Peer exchange address.",
defaultValue: "localhost:50001",
name: "px-addr",
}: string
pxId* {.
desc: "Peer exchange ID.",
defaultValue: "waku-v2-peer-exchange",
name: "px-id",
}: string
2025-03-29 05:56:45 +05:30
port* {.
desc: "Port to listen on.",
defaultValue: 50000,
name: "port",
2025-03-29 17:01:19 +05:30
}: int
numMsgs* {.
desc: "Number of messages to send.",
defaultValue: 1,
name: "num-msgs",
}: int
minMixPoolSize* {.
desc: "Number of messages to wait for before sending.",
defaultValue: 3,
2025-03-29 19:35:56 +05:30
name: "min-mix-pool-size",
2025-03-29 05:56:45 +05:30
}: int