seaweedfs/weed/mq/topic/topic_partition.go

15 lines
273 B
Go
Raw Normal View History

2023-09-25 06:05:41 +00:00
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)
}