aboutsummaryrefslogtreecommitdiff
path: root/weed/mq/topic.go
blob: fc1923af1eab8fad21a4356a030126177b30b100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}