You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
217 B

  1. package topic
  2. import "fmt"
  3. type TopicPartition struct {
  4. Topic
  5. Partition
  6. }
  7. func (tp *TopicPartition) String() string {
  8. return fmt.Sprintf("%v.%v-%04d-%04d", tp.Namespace, tp.Topic, tp.RangeStart, tp.RangeStop)
  9. }