Stop stops serving the LoadBalancer service and unblocks the preceding call to Serve().
()
| 142 | // Stop stops serving the LoadBalancer service and unblocks the preceding call |
| 143 | // to Serve(). |
| 144 | func (s *Server) Stop() { |
| 145 | defer close(s.stopped) |
| 146 | s.mu.Lock() |
| 147 | if s.grpcServer != nil { |
| 148 | s.grpcServer.Stop() |
| 149 | s.grpcServer = nil |
| 150 | } |
| 151 | s.mu.Unlock() |
| 152 | } |
| 153 | |
| 154 | // Address returns the host:port on which the LoadBalancer service is serving. |
| 155 | func (s *Server) Address() string { |
no test coverage detected