Node builder structure

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Łukasz Magiera
2019-06-29 11:19:06 +02:00
committed by Jakub Sztandera
parent 5238872c02
commit 795621ed27
16 changed files with 268 additions and 26 deletions

View File

@ -2,8 +2,11 @@ package client
import (
"github.com/filecoin-project/go-lotus/api"
"github.com/filecoin-project/go-lotus/rpclib"
)
func NewRPC(addr string) api.API {
return nil // TODO
}
var res api.Struct
rpclib.NewClient(addr, "Filecoin", &res.Internal)
return &res
}