2018-10-28 17:07:30 +01:00

29 lines
364 B
Go

package main
import (
"context"
"net/url"
)
func init() {
prepareConfig()
}
func main() {
readConfig()
c := context.Background()
remotes := make(chan *OD)
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()
}