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

3 years ago
  1. package mq
  2. import "time"
  3. type Namespace string
  4. type Topic struct {
  5. namespace Namespace
  6. name string
  7. }
  8. type Partition struct {
  9. rangeStart int
  10. rangeStop int // exclusive
  11. ringSize int
  12. }
  13. type Segment struct {
  14. topic Topic
  15. id int32
  16. partition Partition
  17. lastModified time.Time
  18. }