1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-20 09:56:49 +02:00

src/api/eosio_v2.go: Adding EosioV2Factory function

This commit is contained in:
Henrik Hautakoski 2022-10-25 17:42:46 +02:00
parent 7b78d2632b
commit 9fcffe375a
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
2 changed files with 20 additions and 0 deletions

View file

@ -13,6 +13,10 @@ type EosioV2 struct {
offset int64
}
func EosioV2Factory(args ApiArguments) ApiInterface {
return NewEosioV2(args.Url, args.Host, int64(args.NumBlocks))
}
func NewEosioV2(url string, host string, offset int64) EosioV2 {
api := EosioV2{