fix listing topics
This commit is contained in:
14
weed/mq/topic/topic_partition.go
Normal file
14
weed/mq/topic/topic_partition.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user