2023-03-03 09:07:25 +00:00
|
|
|
import
|
2023-03-07 10:10:36 +00:00
|
|
|
./topics/content_topic,
|
2023-08-01 13:05:16 +00:00
|
|
|
./topics/pubsub_topic,
|
|
|
|
./topics/sharding
|
2023-03-03 09:07:25 +00:00
|
|
|
|
2023-03-07 10:10:36 +00:00
|
|
|
export
|
|
|
|
content_topic,
|
2023-08-01 13:05:16 +00:00
|
|
|
pubsub_topic,
|
|
|
|
sharding
|
2023-08-23 13:53:17 +00:00
|
|
|
|
|
|
|
type
|
|
|
|
SubscriptionKind* = enum ContentSub, ContentUnsub, PubsubSub, PubsubUnsub
|
|
|
|
SubscriptionEvent* = object
|
|
|
|
case kind*: SubscriptionKind
|
|
|
|
of PubsubSub: pubsubSub*: string
|
|
|
|
of ContentSub: contentSub*: string
|
|
|
|
of PubsubUnsub: pubsubUnsub*: string
|
|
|
|
of ContentUnsub: contentUnsub*: string
|