Skip to content

About

F

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

go-crontab

doc
prepare
common  
logger  
master  master程序
worker  worker程序

前置

  • 启动mongodb
mongodb://127.0.0.1:27017
  • 启动etcd
127.0.0.1:2379
  • 下载依赖包
go get github.com/mongodb/mongo-go-driver/mongo
go get go.etcd.io/etcd/clientv3

安装&运行

  • 安装运行
cd $GOPATH/src
git clone  xx.git
cd go-crontab
cd master/main
go run master.go

cd worker/main
go run worker.go
  • 访问 localhost:8070
  • 测试 新建任务
test
echo "test"
5 * * * * * * 

知识点

  • github.com/gorhill/cronexpr cron解析库的使用
  • etcd的使用
  • mongodb的使用

About

F

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages