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:
parent
7b78d2632b
commit
9fcffe375a
2 changed files with 20 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue