seaweedfs/weed/mq/topic.go
2022-07-28 23:24:38 -07:00

24 lines
312 B
Go

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
}