This commit is contained in:
Bel LaPointe
2021-03-28 13:12:15 -05:00
commit be2a031834
46 changed files with 11740 additions and 0 deletions

31
main.go Executable file
View File

@@ -0,0 +1,31 @@
package main
import (
"local/logb"
"local/sandbox/arlo-cleaner/config"
"local/sandbox/arlo-cleaner/monitor"
)
func main() {
if err := config.Refresh(); err != nil {
panic(err)
}
arlo, err := monitor.NewArlo()
if err != nil {
panic(err)
}
arloError := arlo.Start()
drive, err := monitor.NewDrive()
if err != nil {
panic(err)
}
driveError := drive.Start()
for {
select {
case err := <-arloError:
logb.Errorf("arlo error", err)
case err := <-driveError:
logb.Errorf("drive error", err)
}
}
}