mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-04 12:03:43 +02:00
eosapi/types.go: adding some comments.
This commit is contained in:
parent
70ad80763f
commit
a2327555f9
1 changed files with 2 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ type Info struct {
|
||||||
HeadBlockTime time.Time `json:"head_block_time"`
|
HeadBlockTime time.Time `json:"head_block_time"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Service struct from /v2/health
|
||||||
type Service struct {
|
type Service struct {
|
||||||
Name string `json:"service"`
|
Name string `json:"service"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
|
|
@ -17,6 +18,7 @@ type Service struct {
|
||||||
Time int64 `json:"time"` // unix timestamp.
|
Time int64 `json:"time"` // unix timestamp.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// /v2/health format (not all fields).
|
||||||
type Health struct {
|
type Health struct {
|
||||||
VersionHash string `json:"version_hash"`
|
VersionHash string `json:"version_hash"`
|
||||||
Health []Service `json:"health"`
|
Health []Service `json:"health"`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue