seaweedfs/weed/mq/topic.go

24 lines
312 B
Go
Raw Normal View History

2022-07-10 08:36:23 +00:00
package mq
import "time"
type Namespace string
type Topic struct {
namespace Namespace
name string
}
type Partition struct {
rangeStart int
rangeStop int // exclusive
ringSize int
}
type Segment struct {
topic Topic
id int32
partition Partition
lastModified time.Time
}