Better configuration loading process for servers

Loads up to 10 configurations at once in parallel
This commit is contained in:
Dane Everitt
2019-03-24 18:39:01 -07:00
parent 29de97c857
commit 639d9edef5
8 changed files with 85 additions and 76 deletions

View File

@@ -1,7 +1,6 @@
package environment
import (
"github.com/pterodactyl/wings/server"
"os"
)
@@ -24,12 +23,4 @@ type Environment interface {
// Terminates a running server instance using the provided signal. If the server
// is not running no error should be returned.
Terminate(signal os.Signal) error
}
// Defines an environment controller for a server instance. This can either be
// a docker environment where the server is running in a container, or a host
// CLI environment where it is not running in a container at all (theoretically).
type Controller struct {
// The server instance attached to this environment.
Server *server.Server
}
}