2 Star 7 Fork 9

联犀/中台模块

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
api.go 640 Bytes
一键复制 编辑 原始数据 按行查看 历史
杨磊 提交于 2个月前 . feat: 调整导出模式
// api网关接口代理模块-apisvr
package main
import (
"context"
"fmt"
"gitee.com/unitedrhino/core/service/apisvr/coreExport"
"gitee.com/unitedrhino/share/utils"
"github.com/zeromicro/go-zero/core/logx"
_ "github.com/zeromicro/go-zero/core/proc" //开启pprof采集 https://mp.weixin.qq.com/s/yYFM3YyBbOia3qah3eRVQA
)
func main() {
defer utils.Recover(context.Background())
logx.DisableStat()
apiCtx := coreExport.NewApi(coreExport.ApiCtx{})
apiCtx.Server.PrintRoutes()
fmt.Printf("Starting coreSvr at %s:%d...\n", apiCtx.SvcCtx.Config.Host, apiCtx.SvcCtx.Config.Port)
defer apiCtx.Server.Stop()
apiCtx.Server.Start()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/unitedrhino/core.git
git@gitee.com:unitedrhino/core.git
unitedrhino
core
中台模块
v1.3.3

搜索帮助

371d5123 14472233 46e8bd33 14472233