mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 20:59:42 +08:00
13 lines
217 B
Go
13 lines
217 B
Go
package topic
|
|
|
|
import "fmt"
|
|
|
|
type TopicPartition struct {
|
|
Topic
|
|
Partition
|
|
}
|
|
|
|
func (tp *TopicPartition) String() string {
|
|
return fmt.Sprintf("%v.%v-%04d-%04d", tp.Namespace, tp.Topic, tp.RangeStart, tp.RangeStop)
|
|
}
|