2 changed files with 19 additions and 18 deletions
@ -1,21 +1,6 @@ |
|||||
|
var fs = require('fs') |
||||
|
var path = require('path') |
||||
var protobuf = require('protocol-buffers') |
var protobuf = require('protocol-buffers') |
||||
var messages = protobuf(` |
var messages = protobuf(fs.readFileSync(path.join(__dirname, 'schema.proto'), 'utf-8')) |
||||
message Request { |
|
||||
required string command = 1; |
|
||||
optional bytes id = 2; |
|
||||
optional bytes target = 3; |
|
||||
optional bytes forwardRequest = 4; |
|
||||
optional bytes forwardResponse = 5; |
|
||||
optional bytes roundtripToken = 6; |
|
||||
optional bytes value = 7; |
|
||||
} |
|
||||
|
|
||||
message Response { |
|
||||
optional bytes id = 1; |
|
||||
optional bytes nodes = 2; |
|
||||
optional bytes value = 3; |
|
||||
optional bytes roundtripToken = 4; |
|
||||
} |
|
||||
`)
|
|
||||
|
|
||||
module.exports = messages |
module.exports = messages |
||||
|
@ -0,0 +1,16 @@ |
|||||
|
message Request { |
||||
|
required string command = 1; |
||||
|
optional bytes id = 2; |
||||
|
optional bytes target = 3; |
||||
|
optional bytes forwardRequest = 4; |
||||
|
optional bytes forwardResponse = 5; |
||||
|
optional bytes roundtripToken = 6; |
||||
|
optional bytes value = 7; |
||||
|
} |
||||
|
|
||||
|
message Response { |
||||
|
optional bytes id = 1; |
||||
|
optional bytes nodes = 2; |
||||
|
optional bytes value = 3; |
||||
|
optional bytes roundtripToken = 4; |
||||
|
} |
Loading…
Reference in new issue