|
@ -16,9 +16,11 @@ type TopicPartition struct { |
|
|
Topic string |
|
|
Topic string |
|
|
Partition int32 |
|
|
Partition int32 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const ( |
|
|
const ( |
|
|
TopicPartitionFmt = "%s/%s_%02d" |
|
|
TopicPartitionFmt = "%s/%s_%02d" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func (tp *TopicPartition) String() string { |
|
|
func (tp *TopicPartition) String() string { |
|
|
return fmt.Sprintf(TopicPartitionFmt, tp.Namespace, tp.Topic, tp.Partition) |
|
|
return fmt.Sprintf(TopicPartitionFmt, tp.Namespace, tp.Topic, tp.Partition) |
|
|
} |
|
|
} |
|
|