1
0
Fork 0
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:
Henrik Hautakoski 2022-02-21 11:38:03 +01:00
parent ddc7406a4c
commit 400ec204bc
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
4 changed files with 5 additions and 5 deletions

View file

@ -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)
}

View file

@ -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)

View file

@ -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)