"bytes"
"encoding/json"
"fmt"
- "github.com/spf13/viper"
"net/http"
"os"
"os/signal"
"sync/atomic"
"syscall"
"time"
+
+ "github.com/spf13/viper"
)
type ReadyCB func(interface{})
svc := fmt.Sprintf(service, strings.ToUpper(appnamespace), strings.ToUpper(host))
url := strings.Split(os.Getenv(strings.Replace(svc, "-", "_", -1)), "//")
+
+ Logger.Info("getService: %+v %+v", svc, url)
if len(url) > 1 {
return url[1]
}