rename to protorpc and jsonrpc

This commit is contained in:
Asim
2015-11-28 18:54:38 +00:00
parent 80f53ab176
commit dddcdc34ed
9 changed files with 23 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
package json
package jsonrpc
import (
"encoding/json"

View File

@@ -1,4 +1,4 @@
package json
package jsonrpc
import (
"bytes"
@@ -23,7 +23,7 @@ func (j *jsonCodec) Close() error {
}
func (j *jsonCodec) String() string {
return "json"
return "json-rpc"
}
func (j *jsonCodec) Write(m *codec.Message, b interface{}) error {

View File

@@ -1,4 +1,4 @@
package json
package jsonrpc
import (
"encoding/json"

View File

@@ -12,7 +12,7 @@ It has these top-level messages:
Request
Response
*/
package proto
package protorpc
import proto "github.com/golang/protobuf/proto"
import json "encoding/json"

View File

@@ -1,4 +1,4 @@
package proto;
package protorpc;
message Request {
optional string service_method = 1;

View File

@@ -1,4 +1,4 @@
package proto
package protorpc
import (
"encoding/binary"

View File

@@ -1,4 +1,4 @@
package proto
package protorpc
import (
"bytes"
@@ -27,7 +27,7 @@ func (c *protoCodec) Close() error {
}
func (c *protoCodec) String() string {
return "proto"
return "proto-rpc"
}
func (c *protoCodec) Write(m *codec.Message, b interface{}) error {