Richard Patel 79f540bf29
Scheduler
2018-10-28 02:40:12 +02:00

26 lines
354 B
Go

package main
import (
"context"
"net/url"
)
func main() {
prepareConfig()
readConfig()
c := context.Background()
remotes := make(chan *RemoteDir)
go Schedule(c, remotes)
u, _ := url.Parse("http://mine.terorie.com:420/")
remote := NewRemoteDir(*u)
globalWait.Add(1)
remotes <- remote
// Wait for all jobs to finish
globalWait.Wait()
}