MCPcopy
hub / github.com/grpc/grpc-go / GRPCServer

Struct GRPCServer

xds/server.go:63–70  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

61// grpc.ServiceRegistrar interface and can be passed to service registration
62// functions in IDL generated code.
63type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected