1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

src/server.go: refactor eosio v1/v2 api code into it's own module that implements a common interface

This commit is contained in:
Henrik Hautakoski 2022-02-21 11:34:47 +01:00
parent fa9a943215
commit ddc7406a4c
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
6 changed files with 173 additions and 93 deletions

11
src/api/interface.go Normal file
View file

@ -0,0 +1,11 @@
package api
import (
"github.com/eosswedenorg-go/haproxy"
)
type ApiInterface interface {
Name() string
Call() (haproxy.HealthCheckStatus, string)
}