-
Notifications
You must be signed in to change notification settings - Fork 129
/
main.go
35 lines (27 loc) · 844 Bytes
/
main.go
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
package main
import (
"github.com/armadaproject/armada/internal/eventingester"
"github.com/spf13/pflag"
"github.com/spf13/viper"
"github.com/armadaproject/armada/internal/common"
"github.com/armadaproject/armada/internal/eventingester/configuration"
)
const (
CustomConfigLocation string = "config"
)
func init() {
pflag.StringSlice(
CustomConfigLocation,
[]string{},
"Fully qualified path to application configuration file (for multiple config files repeat this arg or separate paths with commas)",
)
pflag.Parse()
}
func main() {
common.ConfigureLogging()
common.BindCommandlineArguments()
var config configuration.EventIngesterConfiguration
userSpecifiedConfigs := viper.GetStringSlice(CustomConfigLocation)
common.LoadConfig(&config, "./config/eventingester", userSpecifiedConfigs)
eventingester.Run(&config)
}