2 Star 1 Fork 1

极速代码/dcmp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 323 Bytes
一键复制 编辑 原始数据 按行查看 历史
wenzl 提交于 2016-08-17 19:14 +08:00 . add etcd ssl support
package main
import (
"runtime"
"github.com/gin-gonic/gin"
"github.com/silenceper/dcmp/etcd"
)
var cfg *config
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
cfg = getConfig()
etcd.InitConfig(cfg.Endpoints, cfg.CaFile, cfg.CertFile, cfg.KeyFile)
r := gin.Default()
registerRouter(r)
r.Run(cfg.Listen)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/andy521/dcmp.git
git@gitee.com:andy521/dcmp.git
andy521
dcmp
dcmp
master

搜索帮助