| 57 | } |
| 58 | |
| 59 | type remoteConnector struct { |
| 60 | ctx context.Context |
| 61 | executor Executor |
| 62 | cert string |
| 63 | addr string |
| 64 | listener net.Listener |
| 65 | logger slog.Logger |
| 66 | tlsCfg *tls.Config |
| 67 | |
| 68 | mu sync.Mutex |
| 69 | waiters map[string]waiter |
| 70 | } |
| 71 | |
| 72 | func NewRemoteConnector(ctx context.Context, logger slog.Logger, exec Executor) (agpl.Connector, error) { |
| 73 | // nolint: gosec |
nothing calls this directly
no outgoing calls
no test coverage detected