gocron/gocron-node.go

21 lines
267 B
Go
Raw Normal View History

2017-05-26 10:09:07 +00:00
// +build node
// 任务节点
package main
import (
"github.com/ouqiang/gocron/modules/rpc/server"
"os"
)
func main() {
var addr string
if (len(os.Args) < 2) {
2017-05-26 13:59:01 +00:00
addr = "0.0.0.0:5921"
} else {
addr = os.Args[1]
}
for {
server.Start(addr)
}
2017-05-26 10:09:07 +00:00
}