chrislu
1 year ago
8 changed files with 64 additions and 24 deletions
-
31weed/mq/balancer/balancer.go
-
7weed/mq/balancer/lookup.go
-
5weed/mq/broker/broker_grpc_balancer.go
-
14weed/mq/broker/broker_grpc_create.go
-
7weed/mq/broker/broker_grpc_lookup.go
-
1weed/mq/broker/broker_stats.go
-
9weed/mq/topic/local_manager.go
-
14weed/mq/topic/topic_partition.go
@ -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) |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue