You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
312 B
23 lines
312 B
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
|
|
}
|