Beispiel #1
0
func main() {
	config, _ := logsauce.ReadConfig("./server.conf")

	logsauce.InitializeDB(config)
	logsauce.RegisterRoutes(config.ListenPort, config.Relaymode, config.ServerMode)
	fmt.Println("Starting server")

	looper := make(chan int)
	<-looper
}
Beispiel #2
0
func main() {
	config, _ := logsauce.ReadConfig("./client.conf")

	logsauce.WatchFiles(config.ClientConfiguration.FilesToWatch, true, config.ClientConfiguration.ServerAddress, config.ClientConfiguration.ClientToken)
}