go-zero/rpcx/internal/balancer/roundrobin.go
2020-08-06 14:05:09 +08:00

26 lines
446 B
Go

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")
}