MCPcopy Create free account
hub / github.com/TalkingData/owl / main

Function main

controller/main.go:19–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func main() {
20 if err := InitGlobalConfig(); err != nil {
21 fmt.Println("failed to init global config:", err)
22 return
23 }
24 if err := InitLog(); err != nil {
25 fmt.Println("failed to init log:", err)
26 return
27 }
28 if err := InitMysqlConnPool(); err != nil {
29 fmt.Println("failed to init mysql connection pool:", err)
30 return
31 }
32 if err := InitController(); err != nil {
33 fmt.Println("failed to init tcp server:", err)
34 return
35 }
36 select {}
37}

Callers

nothing calls this directly

Calls 4

InitControllerFunction · 0.85
InitGlobalConfigFunction · 0.70
InitLogFunction · 0.70
InitMysqlConnPoolFunction · 0.70

Tested by

no test coverage detected