Start starts the server and creates a client connected to it.
(sopts []grpc.ServerOption, dopts ...grpc.DialOption)
| 115 | |
| 116 | // Start starts the server and creates a client connected to it. |
| 117 | func (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 | |
| 128 | type registerServiceServerOption struct { |
| 129 | grpc.EmptyServerOption |