From 1e5c432e1029601a664454388ae366ef69618d62 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 25 Jun 2018 12:33:13 -0700 Subject: MM-10702 Moving plugins to use hashicorp go-plugin. (#8978) * Moving plugins to use hashicorp go-plugin. * Tweaks from feedback. --- plugin/rpcplugin/process.go | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 plugin/rpcplugin/process.go (limited to 'plugin/rpcplugin/process.go') diff --git a/plugin/rpcplugin/process.go b/plugin/rpcplugin/process.go deleted file mode 100644 index a795be133..000000000 --- a/plugin/rpcplugin/process.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -package rpcplugin - -import ( - "context" - "io" -) - -type Process interface { - // Waits for the process to exit and returns an error if a problem occurred or the process exited - // with a non-zero status. - Wait() error -} - -// NewProcess launches an RPC executable in a new process and returns an IPC that can be used to -// communicate with it. -func NewProcess(ctx context.Context, path string) (Process, io.ReadWriteCloser, error) { - return newProcess(ctx, path) -} - -// When called on a process launched with NewProcess, returns the inherited IPC. -func InheritedProcessIPC() (io.ReadWriteCloser, error) { - return inheritedProcessIPC() -} -- cgit v1.2.3-1-g7c22