mirror of
https://gitee.com/johng/gf
synced 2026-07-08 22:40:30 +08:00
16 lines
231 B
Go
16 lines
231 B
Go
package balancer
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/net/gsvc"
|
|
"google.golang.org/grpc/balancer"
|
|
)
|
|
|
|
type Node struct {
|
|
service *gsvc.Service
|
|
conn balancer.SubConn
|
|
}
|
|
|
|
func (n *Node) Service() *gsvc.Service {
|
|
return n.service
|
|
}
|