MCPcopy
hub / github.com/istio/istio / initGrpcServer

Method initGrpcServer

pilot/pkg/bootstrap/server.go:767–776  ·  view source on GitHub ↗
(options *istiokeepalive.Options)

Source from the content-addressed store, hash-verified

765}
766
767func (s *Server) initGrpcServer(options *istiokeepalive.Options) {
768 interceptors := []grpc.UnaryServerInterceptor{
769 // setup server prometheus monitoring (as final interceptor in chain)
770 grpcprom.UnaryServerInterceptor,
771 }
772 grpcOptions := istiogrpc.ServerOptions(options, xdspkg.RecordRecvSize, interceptors...)
773 s.grpcServer = grpc.NewServer(grpcOptions...)
774 s.XDSServer.Register(s.grpcServer)
775 reflection.Register(s.grpcServer)
776}
777
778// initialize secureGRPCServer.
779func (s *Server) initSecureDiscoveryService(args *PilotArgs, trustDomain string) error {

Callers 1

initServersMethod · 0.95

Calls 1

RegisterMethod · 0.65

Tested by

no test coverage detected