aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/comms/http.go
diff options
context:
space:
mode:
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