8 Star 21 Fork 18

Ulric Qin / dinp-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.go 551 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ulric Qin 提交于 2015-02-08 23:04 . init github version
package main
import (
"flag"
"fmt"
"github.com/dinp/server/cron"
"github.com/dinp/server/g"
"github.com/dinp/server/hbs"
"github.com/dinp/server/http"
"os"
)
func main() {
cfg := flag.String("c", "cfg.json", "configuration file")
version := flag.Bool("v", false, "show version")
flag.Parse()
if *version {
fmt.Println(g.VERSION)
os.Exit(0)
}
g.ParseConfig(*cfg)
g.InitRedisConnPool()
g.InitDbConnPool()
go cron.CompareState()
go cron.CheckStale()
go cron.SyncRoutes()
go cron.SyncDomain()
go http.Start()
hbs.Start()
}
Go
1
https://gitee.com/cnperl/dinp-server.git
git@gitee.com:cnperl/dinp-server.git
cnperl
dinp-server
dinp-server
master

搜索帮助