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:
parent
fa9a943215
commit
ddc7406a4c
6 changed files with 173 additions and 93 deletions
11
src/api/interface.go
Normal file
11
src/api/interface.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/eosswedenorg-go/haproxy"
|
||||
)
|
||||
|
||||
type ApiInterface interface {
|
||||
Name() string
|
||||
Call() (haproxy.HealthCheckStatus, string)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue