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

Method Start

internal/stubserver/stubserver.go:117–126  ·  view source on GitHub ↗

Start starts the server and creates a client connected to it.

(sopts []grpc.ServerOption, dopts ...grpc.DialOption)

Source from the content-addressed store, hash-verified

115
116// Start starts the server and creates a client connected to it.
117func (ss *StubServer) Start(sopts []grpc.ServerOption, dopts ...grpc.DialOption) error {
118 if err := ss.StartServer(sopts...); err != nil {
119 return err
120 }
121 if err := ss.StartClient(dopts...); err != nil {
122 ss.Stop()
123 return err
124 }
125 return nil
126}
127
128type registerServiceServerOption struct {
129 grpc.EmptyServerOption

Calls 3

StartServerMethod · 0.95
StartClientMethod · 0.95
StopMethod · 0.95