MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / main

Function main

cmd/controller/controller.go:33–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31)
32
33func main() {
34 s := options.NewOptions()
35 s.AddFlags(pflag.CommandLine)
36
37 flag.InitFlags()
38 logs.InitLogs()
39 logs.InitSummaryLogs()
40 defer logs.FlushLogs()
41
42 verflag.PrintAndExitIfRequested()
43 logs.Infof("origin go process num %d", runtime.GOMAXPROCS(0))
44 runtime.GOMAXPROCS(s.GoMaxProcs)
45 logs.Infof("set go process num %d", runtime.GOMAXPROCS(0))
46 if err := app.Run(s); err != nil {
47 fmt.Fprintf(os.Stderr, "%v\n", err)
48 os.Exit(1)
49 }
50}

Callers

nothing calls this directly

Calls 9

AddFlagsMethod · 0.95
NewOptionsFunction · 0.92
InitFlagsFunction · 0.92
InitLogsFunction · 0.92
InitSummaryLogsFunction · 0.92
FlushLogsFunction · 0.92
PrintAndExitIfRequestedFunction · 0.92
InfofFunction · 0.92
RunFunction · 0.92

Tested by

no test coverage detected