Maint: move OpenVPN streams processing to config package

This commit is contained in:
Quentin McGaw (desktop)
2021-08-18 21:16:28 +00:00
parent a0cb6fabfd
commit 0027a76c49
8 changed files with 136 additions and 73 deletions

View File

@@ -17,12 +17,7 @@ const (
binOpenvpn25 = "openvpn"
)
type Starter interface {
Start(ctx context.Context, version string, flags []string) (
stdoutLines, stderrLines chan string, waitError chan error, err error)
}
func (c *Configurator) Start(ctx context.Context, version string, flags []string) (
func (c *Configurator) start(ctx context.Context, version string, flags []string) (
stdoutLines, stderrLines chan string, waitError chan error, err error) {
var bin string
switch version {