GRPCServer wraps a gRPC server and provides server-side xDS functionality, by communication with a management server using xDS APIs. It implements the grpc.ServiceRegistrar interface and can be passed to service registration functions in IDL generated code.
| 61 | // grpc.ServiceRegistrar interface and can be passed to service registration |
| 62 | // functions in IDL generated code. |
| 63 | type GRPCServer struct { |
| 64 | gs grpcServer |
| 65 | quit *grpcsync.Event |
| 66 | logger *internalgrpclog.PrefixLogger |
| 67 | opts *serverOptions |
| 68 | xdsC xdsclient.XDSClient |
| 69 | xdsClientClose func() |
| 70 | } |
| 71 | |
| 72 | // NewGRPCServer creates an xDS-enabled gRPC server using the passed in opts. |
| 73 | // The underlying gRPC server has no service registered and has not started to |
nothing calls this directly
no outgoing calls
no test coverage detected