broker.go 190 B

123456789101112
  1. package mq
  2. const LAST_MINUTES = 10
  3. type TopicStat struct {
  4. MessageCounts [LAST_MINUTES]int64
  5. ByteCounts [LAST_MINUTES]int64
  6. }
  7. func NewTopicStat() *TopicStat {
  8. return &TopicStat{}
  9. }