@@ -21,11 +21,11 @@ import (
2121 "github.com/nantian-gw/gateway/internal/admin"
2222 "github.com/nantian-gw/gateway/internal/config"
2323 "github.com/nantian-gw/gateway/internal/controller"
24- "github.com/nantian-gw/gateway/internal/grpcserver "
24+ "github.com/nantian-gw/gateway/internal/xds "
2525 "github.com/nantian-gw/gateway/internal/infrastructure"
2626 "github.com/nantian-gw/gateway/internal/ir"
2727 "github.com/nantian-gw/gateway/internal/lifecycle"
28- "github.com/nantian-gw/gateway/internal/nodestatus "
28+ "github.com/nantian-gw/gateway/internal/nodeinfo "
2929 "github.com/nantian-gw/gateway/internal/observability"
3030 "github.com/nantian-gw/gateway/internal/status"
3131 "github.com/nantian-gw/gateway/internal/translator"
@@ -129,18 +129,18 @@ func run(configPath string) error {
129129 metrics .XDSSnapshotFanoutCoalescedTotal .Add (float64 (replaced ))
130130 },
131131 })
132- nodeRepository := nodestatus .NewLeaseRepository (
132+ nodeRepository := nodeinfo .NewLeaseRepository (
133133 mgr .GetAPIReader (),
134134 mgr .GetClient (),
135135 cfg .NodeStatus .Namespace ,
136136 cfg .NodeStatus .LeasePrefix ,
137137 logger ,
138138 )
139- nodes := nodestatus .NewRegistry (
139+ nodes := nodeinfo .NewRegistry (
140140 ir .NewNodeStatusStore (),
141141 nodeRepository ,
142142 logger ,
143- nodestatus .Options {
143+ nodeinfo .Options {
144144 BaseContext : ctx ,
145145 PersistTimeout : cfg .NodeStatusPersistTimeout (),
146146 PersistDebounce : cfg .NodeStatusPersistDebounce (),
@@ -350,7 +350,7 @@ func run(configPath string) error {
350350 logger .Info ("configured dataplane admin aggregation" , "service" , dpCfg .ServiceName , "namespace" , namespace )
351351 }
352352
353- grpcServer , err := grpcserver .New (cfg .GRPCAddr , cfg .GRPCTLS , cfg .GRPCRuntime , store , nodes , logger , metrics )
353+ grpcServer , err := xds .New (cfg .GRPCAddr , cfg .GRPCTLS , cfg .GRPCRuntime , store , nodes , logger , metrics )
354354 if err != nil {
355355 return fmt .Errorf ("configure grpc server: %w" , err )
356356 }
0 commit comments