Skip to content

Commit 857db3a

Browse files
update readme.md
1 parent ab269e4 commit 857db3a

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

README.md

+20-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ A simple wait and response api for retry& timeout test. Yes everyone loves to te
33

44
Install via brew
55
```
6-
brew tap applegreengrape/timeout-checker https://github.com/applegreengrape/timeout-checker
7-
brew install timeout-checker
8-
```
6+
$ brew tap applegreengrape/timeout-checker https://github.com/applegreengrape/timeout-checker
7+
$ brew install timeout-checker
8+
```
9+
server side:
10+
```
11+
$ checker-api -wait 5 -port 8081
12+
2021/11/19 16:37:06 recieved
13+
2021/11/19 16:37:11 returned
14+
2021/11/19 16:37:14 recieved
15+
2021/11/19 16:37:19 returned
16+
```
17+
18+
client side:
19+
```
20+
$ curl http://localhost:8081/healthcheck
21+
{"status":"up"}
22+
23+
$ curl http://localhost:8081/healthcheck
24+
{"status":"up"}
25+
```

0 commit comments

Comments
 (0)