|
|
@ -1,13 +1,13 @@ |
|
|
|
package grpc |
|
|
|
package grpc |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
"github.com/go-kratos/kratos/v2/registry" |
|
|
|
|
|
|
|
"github.com/go-kratos/kratos/v2/selector" |
|
|
|
|
|
|
|
"github.com/go-kratos/kratos/v2/transport" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"google.golang.org/grpc/balancer" |
|
|
|
"google.golang.org/grpc/balancer" |
|
|
|
"google.golang.org/grpc/balancer/base" |
|
|
|
"google.golang.org/grpc/balancer/base" |
|
|
|
"google.golang.org/grpc/metadata" |
|
|
|
"google.golang.org/grpc/metadata" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/go-kratos/kratos/v2/registry" |
|
|
|
|
|
|
|
"github.com/go-kratos/kratos/v2/selector" |
|
|
|
|
|
|
|
"github.com/go-kratos/kratos/v2/transport" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
const ( |
|
|
@ -15,8 +15,8 @@ const ( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
var ( |
|
|
|
_ base.PickerBuilder = &balancerBuilder{} |
|
|
|
_ base.PickerBuilder = (*balancerBuilder)(nil) |
|
|
|
_ balancer.Picker = &balancerPicker{} |
|
|
|
_ balancer.Picker = (*balancerPicker)(nil) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
func init() { |
|
|
|