Пример #1
0
func main() {
	serverIP := viper.GetString("server.ip")
	beatPort := viper.GetString("server.beatPort")
	endRunning := make(chan bool, 1)

	c = client.New(serverIP, beatPort)
	c.Run()

	<-endRunning
}
Пример #2
0
func setupTests() error {
	if isSetUP == true {
		return nil
	}
	isSetUP = true
	s = server.New(SERVER_IP, ADMIN_PORT, BEAT_PORT)
	s.Run()
	c = client.New(SERVER_IP, BEAT_PORT)
	c.Run()
	return nil
}