update packages
This commit is contained in:
25
rpcx/internal/balancer/roundrobin.go
Normal file
25
rpcx/internal/balancer/roundrobin.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package balancer
|
||||
|
||||
import (
|
||||
"google.golang.org/grpc/balancer"
|
||||
"google.golang.org/grpc/balancer/base"
|
||||
)
|
||||
|
||||
const (
|
||||
Name = "roundrobin"
|
||||
)
|
||||
|
||||
func init() {
|
||||
balancer.Register(newBuilder())
|
||||
}
|
||||
|
||||
type roundRobinPickerBuilder struct {
|
||||
}
|
||||
|
||||
func newBuilder() balancer.Builder {
|
||||
return base.NewBalancerBuilder(Name, new(roundRobinPickerBuilder))
|
||||
}
|
||||
|
||||
func (b *roundRobinPickerBuilder) Build(info base.PickerBuildInfo) balancer.Picker {
|
||||
panic("implement me")
|
||||
}
|
||||
Reference in New Issue
Block a user