move RPCClient interface to sdk
This commit is contained in:
parent
3cd0e1594a
commit
037cb0792c
17
rpcclient.go
17
rpcclient.go
|
@ -1,17 +0,0 @@
|
|||
package sdk
|
||||
|
||||
import "github.com/valyala/gorpc"
|
||||
|
||||
// RPCClient is a client to manage all rpc calls
|
||||
type RPCClient interface {
|
||||
Call(request interface{}) (response interface{}, err error)
|
||||
}
|
||||
|
||||
func newRPC(address string) RPCClient {
|
||||
rpc := &gorpc.Client{
|
||||
Addr: address, // "rpc.server.addr:12345",
|
||||
}
|
||||
rpc.Start()
|
||||
|
||||
return rpc
|
||||
}
|
Loading…
Reference in New Issue