-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathmain.go
More file actions
45 lines (38 loc) · 954 Bytes
/
main.go
File metadata and controls
45 lines (38 loc) · 954 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package main
import (
"github.com/eduard256/strix/internal/api"
"github.com/eduard256/strix/internal/app"
"github.com/eduard256/strix/internal/frigate"
"github.com/eduard256/strix/internal/generate"
"github.com/eduard256/strix/internal/go2rtc"
"github.com/eduard256/strix/internal/homekit"
"github.com/eduard256/strix/internal/probe"
"github.com/eduard256/strix/internal/search"
"github.com/eduard256/strix/internal/test"
)
// version is set at build time via ldflags:
//
// go build -ldflags "-X main.version=2.0.0"
var version = "dev"
func main() {
app.Version = version
type module struct {
name string
init func()
}
modules := []module{
{"", app.Init},
{"api", api.Init},
{"search", search.Init},
{"test", test.Init},
{"probe", probe.Init},
{"generate", generate.Init},
{"frigate", frigate.Init},
{"go2rtc", go2rtc.Init},
{"homekit", homekit.Init},
}
for _, m := range modules {
m.init()
}
select {}
}