mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-27 10:53:44 +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"`
|
||||
}
|
||||
|
||||
// Service struct from /v2/health
|
||||
type Service struct {
|
||||
Name string `json:"service"`
|
||||
Status string `json:"status"`
|
||||
|
|
@ -17,6 +18,7 @@ type Service struct {
|
|||
Time int64 `json:"time"` // unix timestamp.
|
||||
}
|
||||
|
||||
// /v2/health format (not all fields).
|
||||
type Health struct {
|
||||
VersionHash string `json:"version_hash"`
|
||||
Health []Service `json:"health"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue