docs: add example of docker pull image size
This commit is contained in:
parent
7b95c55a70
commit
4761c2dd20
@ -10,7 +10,7 @@ Here is some example
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
### get available service number from health endpoint
|
### get tailchat available service number from health endpoint
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const res = await request({
|
const res = await request({
|
||||||
@ -34,6 +34,20 @@ const res = await request({
|
|||||||
return res.data.stargazers_count ?? -1
|
return res.data.stargazers_count ?? -1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
replace `msgbyte/tianji` to your own repo name
|
||||||
|
|
||||||
|
### get docker pull count
|
||||||
|
|
||||||
|
```js
|
||||||
|
const res = await request({
|
||||||
|
url: "https://hub.docker.com/v2/repositories/moonrailgun/tianji/"
|
||||||
|
});
|
||||||
|
|
||||||
|
return res.data.pull_count;
|
||||||
|
```
|
||||||
|
|
||||||
|
replace `moonrailgun/tianji` to your own image name
|
||||||
|
|
||||||
|
|
||||||
### or more
|
### or more
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user