seaweedfs/weed/mq/topic/topic_partition.go

13 lines
217 B
Go
Raw Normal View History

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