1
0
Fork 0
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:
Henrik Hautakoski 2020-03-06 11:26:04 +01:00
parent 70ad80763f
commit a2327555f9

View file

@ -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"`