Ejemplo n.º 1
0
// ServeRPC serves bsonrpc codec with the default rpc server
func ServeRPC() {
	rpcwrap.ServeRPC(codecName, NewServerCodec)
}
Ejemplo n.º 2
0
// ServeRPC serves a json rpc endpoint using default server
func ServeRPC() {
	rpcwrap.ServeRPC("json", oldjson.NewServerCodec)
}