handleServerOptions iterates through the list of server options passed in by the user, and handles the xDS server specific options.
(opts []grpc.ServerOption)
| 123 | // handleServerOptions iterates through the list of server options passed in by |
| 124 | // the user, and handles the xDS server specific options. |
| 125 | func (s *GRPCServer) handleServerOptions(opts []grpc.ServerOption) { |
| 126 | so := s.defaultServerOptions() |
| 127 | for _, opt := range opts { |
| 128 | if o, ok := opt.(*serverOption); ok { |
| 129 | o.apply(so) |
| 130 | } |
| 131 | } |
| 132 | s.opts = so |
| 133 | } |
| 134 | |
| 135 | func (s *GRPCServer) defaultServerOptions() *serverOptions { |
| 136 | return &serverOptions{ |
no test coverage detected