mirror of
https://github.com/chrislusf/seaweedfs
synced 2025-06-29 16:22:46 +02:00
12 lines
217 B
Go
12 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)
|
|
}
|