seaweedfs/weed/mq/topic/topic_partition.go

13 lines
217 B
Go
Raw Normal View History

2023-09-25 06:05:41 +00:00
package topic
import "fmt"
type TopicPartition struct {
2023-10-02 08:01:45 +00:00
Topic
Partition
2023-09-25 06:05:41 +00:00
}
func (tp *TopicPartition) String() string {
return fmt.Sprintf("%v.%v-%04d-%04d", tp.Namespace, tp.Topic, tp.RangeStart, tp.RangeStop)
}