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

Method Stop

internal/testutils/fakegrpclb/server.go:144–152  ·  view source on GitHub ↗

Stop stops serving the LoadBalancer service and unblocks the preceding call to Serve().

()

Source from the content-addressed store, hash-verified

142// Stop stops serving the LoadBalancer service and unblocks the preceding call
143// to Serve().
144func (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.
155func (s *Server) Address() string {

Callers 5

mainFunction · 0.95
mainFunction · 0.95
StartServerFunction · 0.95
StartServerFunction · 0.95

Calls 3

StopMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected