mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-16 04:44:55 +02:00
go mod: change github.com/eosswedenorg-go/eosapi v0.1.3 to github.com/eosswedenorg-go/leapapi v0.2.0
This commit is contained in:
parent
61cb49f8be
commit
005ad9fcd0
4 changed files with 9 additions and 7 deletions
2
go.mod
2
go.mod
|
|
@ -4,8 +4,8 @@ go 1.16
|
|||
|
||||
require (
|
||||
github.com/eosswedenorg-go/atomicasset v0.0.0-20221123143615-8313517df00a
|
||||
github.com/eosswedenorg-go/eosapi v0.1.3
|
||||
github.com/eosswedenorg-go/haproxy v0.1.1
|
||||
github.com/eosswedenorg-go/leapapi v0.2.0
|
||||
github.com/eosswedenorg-go/pid v1.0.1
|
||||
github.com/eosswedenorg-go/tcp_server v0.2.1
|
||||
github.com/go-stack/stack v1.8.1 // indirect
|
||||
|
|
|
|||
2
go.sum
2
go.sum
|
|
@ -26,6 +26,8 @@ github.com/eosswedenorg-go/eosapi v0.1.3 h1:xZXMkYkPTU15VFQoiZJCMS0DFFVnwdlS0hPl
|
|||
github.com/eosswedenorg-go/eosapi v0.1.3/go.mod h1:YKkjNHIeOWvjN8vYj7YfENHnwse23yl5Rc1ttjIpqdU=
|
||||
github.com/eosswedenorg-go/haproxy v0.1.1 h1:ClOhoK3uGn70KzGCKHdYNvHoU72whfNq3LbqT/lWlOY=
|
||||
github.com/eosswedenorg-go/haproxy v0.1.1/go.mod h1:WnDKkwYbgrpuKUOtUtWlGCgj43DMV+r4VKGdWSTYQeA=
|
||||
github.com/eosswedenorg-go/leapapi v0.2.0 h1:XUWWg+ohSUUj3o4zc7b9sqGJNQQJKhz6rTwXLuOTBY0=
|
||||
github.com/eosswedenorg-go/leapapi v0.2.0/go.mod h1:RZPrRzqh3SqhEQiutvld6960xFCOUq7Xk2h8jhHw/lc=
|
||||
github.com/eosswedenorg-go/pid v1.0.1 h1:W4AEnnNwb041SpNR1uTZ/KbJ0OTA5eqiqIR1Q5Ah6A0=
|
||||
github.com/eosswedenorg-go/pid v1.0.1/go.mod h1:wiOB/JXGt4YA3+T0j0xmCGSc3Jxzb7Ti/Ftli1fgWu4=
|
||||
github.com/eosswedenorg-go/tcp_server v0.2.0 h1:0EHNmdrOGgYuDE+yT6N1xDdZ1Amc18w6tczDnaHdJL8=
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ package api
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/eosswedenorg-go/eosapi"
|
||||
"github.com/eosswedenorg-go/haproxy/agentcheck"
|
||||
"github.com/eosswedenorg-go/leapapi"
|
||||
"github.com/eosswedenorg/antelope-api-healthcheck/internal/utils"
|
||||
)
|
||||
|
||||
type AntelopeV1 struct {
|
||||
utils.Time
|
||||
client eosapi.Client
|
||||
client leapapi.Client
|
||||
block_time float64
|
||||
}
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ func AntelopeV1Factory(args ApiArguments) ApiInterface {
|
|||
|
||||
func NewAntelopeV1(url string, host string, block_time float64) AntelopeV1 {
|
||||
api := AntelopeV1{
|
||||
client: *eosapi.New(url),
|
||||
client: *leapapi.New(url),
|
||||
block_time: block_time,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ package api
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/eosswedenorg-go/eosapi"
|
||||
"github.com/eosswedenorg-go/haproxy/agentcheck"
|
||||
"github.com/eosswedenorg-go/leapapi"
|
||||
"github.com/eosswedenorg/antelope-api-healthcheck/internal/utils"
|
||||
)
|
||||
|
||||
type AntelopeV2 struct {
|
||||
client eosapi.Client
|
||||
client leapapi.Client
|
||||
offset int64
|
||||
}
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ func AntelopeV2Factory(args ApiArguments) ApiInterface {
|
|||
|
||||
func NewAntelopeV2(url string, host string, offset int64) AntelopeV2 {
|
||||
api := AntelopeV2{
|
||||
client: *eosapi.New(url),
|
||||
client: *leapapi.New(url),
|
||||
offset: offset,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue