gocron/gocron-node.go

19 lines
256 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]
}
2017-05-26 10:09:07 +00:00
server.Start(addr)
}