mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-08-30 21:28:13 +02:00
README.md: rename parameter 3. version to api as it can be more generic then just different versions.
This commit is contained in:
parent
ddc7406a4c
commit
400ec204bc
4 changed files with 5 additions and 5 deletions
|
|
@ -6,6 +6,10 @@ import (
|
|||
)
|
||||
|
||||
type ApiInterface interface {
|
||||
|
||||
// Name of the api
|
||||
Name() string
|
||||
|
||||
// Call api and validate it's status.
|
||||
Call() (haproxy.HealthCheckStatus, string)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ func (e EosioV1) Name() string {
|
|||
return "v1"
|
||||
}
|
||||
|
||||
// check_api - Validates head block time.
|
||||
// ---------------------------------------------------------
|
||||
func (e EosioV1) Call() (haproxy.HealthCheckStatus, string) {
|
||||
|
||||
info, err := eosapi.GetInfo(e.params)
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@ func (e EosioV2) Name() string {
|
|||
return "v2"
|
||||
}
|
||||
|
||||
// check_api - Validates head block time.
|
||||
// ---------------------------------------------------------
|
||||
func (e EosioV2) Call() (haproxy.HealthCheckStatus, string) {
|
||||
|
||||
health, err := eosapi.GetHealth(e.params)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue