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" "fmt"
) )
const (
ContainerGeneralBinFileName = "general.jar"
ContainerGeneralLoggingConfigFileName = "general.logging.json"
ContainerNetworkBinFileName = "network"
ContainerNetworkLoggingConfigFileName = "network.logging.json"
ContainerDiscoveryBinFileName = "discovery"
ContainerDiscoveryLoggingConfigFileName = "discovery.logging.json"
)
type ContainerType int type ContainerType int
const ( const (
DISCOVERY ContainerType = iota ContainerDiscovery ContainerType = iota
NETWORK ContainerNetwork
GENERNAL ContainerGenernal
) )
var ( var (
containerTypeID = map[ContainerType]string{ containerTypeID = map[ContainerType]string{
DISCOVERY: "DISCOVERY", ContainerDiscovery: "DISCOVERY",
NETWORK: "NETWORK", ContainerNetwork: "NETWORK",
GENERNAL: "GENERNAL", ContainerGenernal: "GENERNAL",
} }
containerTypeName = map[string]ContainerType{ containerTypeName = map[string]ContainerType{
"DISCOVERY": DISCOVERY, "DISCOVERY": ContainerDiscovery,
"NETWORK": NETWORK, "NETWORK": ContainerNetwork,
"GENERNAL": GENERNAL, "GENERNAL": ContainerGenernal,
} }
) )

View File

@ -9,16 +9,4 @@ const (
PathConfig = "config" PathConfig = "config"
PathJRE = "jre" PathJRE = "jre"
PathLogs = "logs" 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"
) )