From 7025ffefc308d47c1bd5d7fbf5cc9eb5d233deb0 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 18 Apr 2018 20:10:29 +0900 Subject: [PATCH] ing --- probe/constants/container.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/probe/constants/container.go b/probe/constants/container.go index ef1d628..9ab97b3 100644 --- a/probe/constants/container.go +++ b/probe/constants/container.go @@ -5,15 +5,17 @@ import ( "fmt" ) -const ( - ContainerGeneralBinFileName = "general.jar" - ContainerGeneralLoggingConfigFileName = "general.logging.json" - - ContainerNetworkBinFileName = "network" - ContainerNetworkLoggingConfigFileName = "network.logging.json" - - ContainerDiscoveryBinFileName = "discovery" - ContainerDiscoveryLoggingConfigFileName = "discovery.logging.json" +var ( + ContainerBinFileName = map[ContainerType]string{ + ContainerDiscovery: "container_discovery", + ContainerNetwork: "container_network", + ContainerGenernal: "container_general.jar", + } + ContainerLoggingConfigFileName = map[ContainerType]string{ + ContainerDiscovery: "discovery.logging.json", + ContainerNetwork: "network.logging.json", + ContainerGenernal: "general.logging.json", + } ) type ContainerType int