Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasiny authored Jun 4, 2018
1 parent 562ff7d commit 6e33c64
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# 简易的定时任务队列
# Simple Task Queue

## 启动
## Start

* go run main.go

## 添加任务
## Add Task
```
curl -X POST localhost:8103 -d '{"id":"print-tim","cmd":"date","args":["-R"],"interval":5000}'
```
Expand All @@ -14,12 +14,12 @@ respon
{"ok":true,"error":"","id":"print-time","cmd":"","args":null,"interval":0}
```

## 删除任务
## Delete Task
```
curl -X DELETE localhost:8103 -d ' {"id":"print-time"}'
```

respon
```json
{"ok":true,"error":"","id":"print-time","cmd":"","args":null,"interval":0}
```
```

0 comments on commit 6e33c64

Please sign in to comment.