blob: 3218df9433ecb9872a8f2ba101d8d017caf6eaf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// vim: shiftwidth=4 tabstop=4 noexpandtab
package main
import (
"log"
)
var (
config RuntimeConfig
camera Camera
)
func main() {
// disable log timestamp because systemd takes care of that
log.SetFlags(0)
// parse flags and read config
config = GetRuntimeConfig()
// create camera
camera = NewCamera()
// start goroutines
server := NewWebServer()
go server.run() // http server / user interface
// run camera
camera.run()
}
|