DialIPC create a new IPC client that connects to the given endpoint. On Unix it assumes the endpoint is the full path to a unix socket, and Windows the endpoint is an identifier for a named pipe. The context is used for the initial connection establishment. It does not affect subsequent interaction
(ctx context.Context, endpoint string)
| 46 | // The context is used for the initial connection establishment. It does not |
| 47 | // affect subsequent interactions with the client. |
| 48 | func DialIPC(ctx context.Context, endpoint string) (*Client, error) { |
| 49 | return newClient(ctx, func(ctx context.Context) (net.Conn, error) { |
| 50 | return newIPCConnection(ctx, endpoint) |
| 51 | }) |
| 52 | } |
no test coverage detected