mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
15 lines
273 B
Go
15 lines
273 B
Go
|
package topic
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type TopicPartition struct {
|
||
|
Namespace string
|
||
|
Topic string
|
||
|
RangeStart int32
|
||
|
RangeStop int32
|
||
|
}
|
||
|
|
||
|
func (tp *TopicPartition) String() string {
|
||
|
return fmt.Sprintf("%v.%v-%04d-%04d", tp.Namespace, tp.Topic, tp.RangeStart, tp.RangeStop)
|
||
|
}
|