This commit is contained in:
crusader 2018-04-18 20:04:34 +09:00
parent fac45a284d
commit ad004e327e
2 changed files with 20 additions and 21 deletions

View File

@ -5,25 +5,36 @@ import (
"fmt"
)
const (
ContainerGeneralBinFileName = "general.jar"
ContainerGeneralLoggingConfigFileName = "general.logging.json"
ContainerNetworkBinFileName = "network"
ContainerNetworkLoggingConfigFileName = "network.logging.json"
ContainerDiscoveryBinFileName = "discovery"
ContainerDiscoveryLoggingConfigFileName = "discovery.logging.json"
)
type ContainerType int
const (
DISCOVERY ContainerType = iota
NETWORK
GENERNAL
ContainerDiscovery ContainerType = iota
ContainerNetwork
ContainerGenernal
)
var (
containerTypeID = map[ContainerType]string{
DISCOVERY: "DISCOVERY",
NETWORK: "NETWORK",
GENERNAL: "GENERNAL",
ContainerDiscovery: "DISCOVERY",
ContainerNetwork: "NETWORK",
ContainerGenernal: "GENERNAL",
}
containerTypeName = map[string]ContainerType{
"DISCOVERY": DISCOVERY,
"NETWORK": NETWORK,
"GENERNAL": GENERNAL,
"DISCOVERY": ContainerDiscovery,
"NETWORK": ContainerNetwork,
"GENERNAL": ContainerGenernal,
}
)

View File

@ -9,16 +9,4 @@ const (
PathConfig = "config"
PathJRE = "jre"
PathLogs = "logs"
ContainerGeneralName = "general"
ContainerGeneralFileName = "general.jar"
ContainerGeneralLogConfigFileName = "general.logging.json"
ContainerNetworkName = "network"
ContainerNetworkFileName = "network"
ContainerNetworkLogConfigFileName = "network.logging.json"
ContainerDiscoveryName = "discovery"
ContainerDiscoveryFileName = "discovery"
ContainerDiscoveryLogConfigFileName = "discovery.logging.json"
)