28 lines
602 B
Go
28 lines
602 B
Go
package main
|
|
|
|
import (
|
|
"github.com/infraboard/mcube/v2/ioc/server/cmd"
|
|
|
|
// 工程引用到的一些通用工具(API)
|
|
// 这些接口 不是用来做功能实现, 提供健康检查,性能,等额外信息
|
|
// 健康检查
|
|
_ "github.com/infraboard/mcube/v2/ioc/apps/health/restful"
|
|
|
|
// 非业务模块
|
|
_ "github.com/infraboard/mcube/v2/ioc/apps/metric/restful"
|
|
|
|
// 开启API Doc
|
|
_ "github.com/infraboard/mcube/v2/ioc/apps/apidoc/restful"
|
|
|
|
// Task 执行API
|
|
_ "devops/agent/api"
|
|
|
|
// 注册 TaskRunner
|
|
_ "devops/agent/tasks/task_debug"
|
|
)
|
|
|
|
func main() {
|
|
// 启动服务(ioc)
|
|
cmd.Start()
|
|
}
|