Files
epusdt/src/bootstrap/bootstrap.go
T
Ashang 20c576b9bc init
2022-04-04 16:01:36 +08:00

34 lines
610 B
Go

package bootstrap
import (
"github.com/assimon/luuu/command"
"github.com/assimon/luuu/config"
"github.com/assimon/luuu/model/dao"
"github.com/assimon/luuu/mq"
"github.com/assimon/luuu/task"
"github.com/assimon/luuu/telegram"
"github.com/assimon/luuu/util/log"
)
//Start 服务启动
func Start() {
// 配置加载
config.Init()
// 日志加载
log.Init()
// Mysql启动
dao.MysqlInit()
// redis启动
dao.RedisInit()
// 队列启动
mq.Start()
// telegram机器人启动
go telegram.BotStart()
// 定时任务
go task.Start()
err := command.Execute()
if err != nil {
panic(err)
}
}