LocalClient returns a LocalClient that speaks to s. It will start the server if it has not been started yet. If the server's already been started successfully, it doesn't return an error.
()
| 408 | // It will start the server if it has not been started yet. If the server's |
| 409 | // already been started successfully, it doesn't return an error. |
| 410 | func (s *Server) LocalClient() (*local.Client, error) { |
| 411 | if err := s.Start(); err != nil { |
| 412 | return nil, err |
| 413 | } |
| 414 | return s.localClient, nil |
| 415 | } |
| 416 | |
| 417 | // TestHooks are hooks meant for internal-testing only; they're not stable |
| 418 | // or documented, intentionally. |