代码拉取完成,页面将自动刷新
// 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()
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。