-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from f100024/feature/add-rest-db-status
Added support /rest/db/status
- Loading branch information
Showing
18 changed files
with
1,137 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.2.4 | ||
0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,10 @@ var ( | |
}, | ||
} | ||
) | ||
|
||
func bool2float64(status bool) float64 { | ||
if status { | ||
return float64(1) | ||
} | ||
return float64(0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"errors": 0, | ||
"globalBytes": 4047955455069, | ||
"globalDeleted": 156112, | ||
"globalDirectories": 346372, | ||
"globalFiles": 694624, | ||
"globalSymlinks": 0, | ||
"globalTotalItems": 1197108, | ||
"ignorePatterns": false, | ||
"inSyncBytes": 4047955455069, | ||
"inSyncFiles": 694624, | ||
"invalid": "", | ||
"localBytes": 4047955455069, | ||
"localDeleted": 318, | ||
"localDirectories": 346372, | ||
"localFiles": 694624, | ||
"localSymlinks": 0, | ||
"localTotalItems": 1041314, | ||
"needBytes": 0, | ||
"needDeletes": 0, | ||
"needDirectories": 0, | ||
"needFiles": 0, | ||
"needSymlinks": 0, | ||
"needTotalItems": 0, | ||
"pullErrors": 0, | ||
"sequence": 1213411, | ||
"state": "idle", | ||
"stateChanged": "2077-02-06T00:02:00-07:00", | ||
"version": 1213411 | ||
} |
Oops, something went wrong.