aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/comms/http.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-17 22:22:35 +0800
committerBas van Kervel <bas@ethdev.com>2015-06-22 15:17:09 +0800
commita4a4e9fcf824189d8d06940492a01effe6e6cf92 (patch)
tree5e7b9cea12d319e4ab1d6ca746102e080259297f /rpc/comms/http.go
parent3e1d635f8d40815ef2262e017a969ed6f5eb2a5d (diff)
downloadgo-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.tar.gz
go-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.tar.zst
go-tangerine-a4a4e9fcf824189d8d06940492a01effe6e6cf92.zip
removed old rpc structure and added new inproc api client
Diffstat (limited to 'rpc/comms/http.go')
-rw-r--r--rpc/comms/http.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/rpc/comms/http.go b/rpc/comms/http.go
index 1fea8dc1d..c0ea2cc78 100644
--- a/rpc/comms/http.go
+++ b/rpc/comms/http.go
@@ -63,3 +63,27 @@ func StopHttp() {
httpListener = nil
}
}
+
+
+type httpClient struct {
+ codec codec.ApiCoder
+}
+
+// Create a new in process client
+func NewHttpClient(cfg HttpConfig, codec codec.Codec) *httpClient {
+ return &httpClient{
+ codec: codec.New(nil),
+ }
+}
+
+func (self *httpClient) Close() {
+ // do nothing
+}
+
+func (self *httpClient) Send(req interface{}) error {
+ return nil
+}
+
+func (self *httpClient) Recv() (interface{}, error) {
+ return nil, nil
+} \ No newline at end of file