Inital commit
This commit is contained in:
30
config/config.go
Normal file
30
config/config.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"text/template"
|
||||
)
|
||||
|
||||
var Cfg Config = Config{
|
||||
Name: "minecraft-server",
|
||||
Version: "1.21.1",
|
||||
Type: "VANILLA",
|
||||
Ram: "2G",
|
||||
MOTD: "This server was created using mc-tool",
|
||||
RestartPolicy: "never",
|
||||
Ports: []string{"25565:25565"},
|
||||
}
|
||||
var Data Resources
|
||||
|
||||
type Config struct {
|
||||
Name string
|
||||
Version string
|
||||
Type string
|
||||
Ram string
|
||||
MOTD string
|
||||
RestartPolicy string
|
||||
Ports []string
|
||||
}
|
||||
|
||||
type Resources struct {
|
||||
DockerCompose *template.Template
|
||||
}
|
||||
Reference in New Issue
Block a user