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 }
func main() { config, _ := logsauce.ReadConfig("./client.conf") logsauce.WatchFiles(config.ClientConfiguration.FilesToWatch, true, config.ClientConfiguration.ServerAddress, config.ClientConfiguration.ClientToken) }