Commit 857db3a 1 parent ab269e4 commit 857db3a Copy full SHA for 857db3a
File tree 1 file changed +20
-3
lines changed
1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,23 @@ A simple wait and response api for retry& timeout test. Yes everyone loves to te
3
3
4
4
Install via brew
5
5
```
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
+ ```
You can’t perform that action at this time.
0 commit comments