26 lines
338 B
Go
26 lines
338 B
Go
package installer
|
|
|
|
import "runtime"
|
|
|
|
const ServiceName = "luxtools-client"
|
|
|
|
type InstallOptions struct {
|
|
Listen string
|
|
Allow []string
|
|
DryRun bool
|
|
}
|
|
|
|
type UninstallOptions struct {
|
|
KeepConfig bool
|
|
DryRun bool
|
|
}
|
|
|
|
func Supported() bool {
|
|
switch runtime.GOOS {
|
|
case "linux", "windows":
|
|
return true
|
|
default:
|
|
return false
|
|
}
|
|
}
|