aboutsummaryrefslogtreecommitdiff
path: root/weed/mq/broker.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-07-10 01:36:23 -0700
committerchrislu <chris.lu@gmail.com>2022-07-28 23:24:38 -0700
commit8060fdcac56bae36b53764d7ad23a142a865e67d (patch)
tree319d671fa6628fcde7003f18293f8088ae90d187 /weed/mq/broker.go
parentf25e273e328a9959f4dcef13c5f78e427c0bf7a0 (diff)
downloadseaweedfs-8060fdcac56bae36b53764d7ad23a142a865e67d.tar.xz
seaweedfs-8060fdcac56bae36b53764d7ad23a142a865e67d.zip
remove old code
Diffstat (limited to 'weed/mq/broker.go')
-rw-r--r--weed/mq/broker.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/weed/mq/broker.go b/weed/mq/broker.go
new file mode 100644
index 000000000..8debcec0b
--- /dev/null
+++ b/weed/mq/broker.go
@@ -0,0 +1,12 @@
+package mq
+
+const LAST_MINUTES = 10
+
+type TopicStat struct {
+ MessageCounts [LAST_MINUTES]int64
+ ByteCounts [LAST_MINUTES]int64
+}
+
+func NewTopicStat() *TopicStat {
+ return &TopicStat{}
+}