2019-03-25 00:27:14 +00:00
|
|
|
package wings
|
2019-03-24 21:37:05 +00:00
|
|
|
|
|
|
|
import "os"
|
|
|
|
|
|
|
|
const (
|
2019-03-25 01:00:21 +00:00
|
|
|
Version = "0.0.1"
|
2019-03-24 21:37:05 +00:00
|
|
|
|
2019-03-25 01:00:21 +00:00
|
|
|
// DefaultFilePerms are the file perms used for created files.
|
|
|
|
DefaultFilePerms os.FileMode = 0644
|
2019-03-24 21:37:05 +00:00
|
|
|
|
2019-03-25 01:00:21 +00:00
|
|
|
// DefaultFolderPerms are the file perms used for created folders.
|
|
|
|
DefaultFolderPerms os.FileMode = 0755
|
2019-03-24 21:37:05 +00:00
|
|
|
|
2019-03-25 01:00:21 +00:00
|
|
|
// ServersPath is the path of the servers within the configured DataPath.
|
|
|
|
ServersPath = "servers"
|
2019-03-24 21:37:05 +00:00
|
|
|
|
2019-03-25 01:00:21 +00:00
|
|
|
// ServerConfigFile is the filename of the server config file.
|
|
|
|
ServerConfigFile = "server.json"
|
2019-03-24 21:37:05 +00:00
|
|
|
|
2019-03-25 01:00:21 +00:00
|
|
|
// ServerDataPath is the path of the data of a single server.
|
|
|
|
ServerDataPath = "data"
|
2019-03-24 21:37:05 +00:00
|
|
|
|
2019-03-25 01:00:21 +00:00
|
|
|
// DockerContainerPrefix is the prefix used for naming Docker containers.
|
|
|
|
// It's also used to prefix the hostnames of the docker containers.
|
|
|
|
DockerContainerPrefix = "ptdl-"
|
2019-03-24 21:37:05 +00:00
|
|
|
|
2019-03-25 01:00:21 +00:00
|
|
|
// WSMaxMessages is the maximum number of messages that are sent in one transfer.
|
|
|
|
WSMaxMessages = 10
|
2019-03-24 21:37:05 +00:00
|
|
|
)
|