2020-07-06 09:18:16 +00:00
|
|
|
package main
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-06 09:18:16 +00:00
|
|
|
func main() {
|
|
|
|
var (
|
|
|
|
v = newSettings()
|
|
|
|
l = newLogger(v)
|
|
|
|
g = newGracefulContext(l)
|
2020-10-13 09:31:23 +00:00
|
|
|
a = newApp(g, l, v)
|
2020-07-06 09:18:16 +00:00
|
|
|
)
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-06 09:18:16 +00:00
|
|
|
go a.Server(g)
|
|
|
|
go a.Worker(g)
|
2020-07-03 12:03:06 +00:00
|
|
|
|
2020-07-12 23:00:47 +00:00
|
|
|
a.Wait()
|
2020-07-03 12:03:06 +00:00
|
|
|
}
|