20 lines
310 B
Go
20 lines
310 B
Go
package main
|
|
|
|
import (
|
|
"git.umbach.dev/picture-storage-handler/modules/config"
|
|
"git.umbach.dev/picture-storage-handler/modules/rabbitmq"
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func main() {
|
|
config.LoadConfig()
|
|
|
|
cfg := &config.Cfg.Server
|
|
|
|
if cfg.Debug {
|
|
log.SetLevel(log.DebugLevel)
|
|
}
|
|
|
|
rabbitmq.Init()
|
|
}
|