starpc 0.31.1 → 0.31.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  // Code generated by protoc-gen-go-lite. DO NOT EDIT.
2
- // protoc-gen-go-lite version: v0.4.1
2
+ // protoc-gen-go-lite version: v0.4.3
3
3
  // source: github.com/aperturerobotics/starpc/e2e/mock/mock.proto
4
4
 
5
5
  package e2e_mock
package/echo/echo.pb.go CHANGED
@@ -1,5 +1,5 @@
1
1
  // Code generated by protoc-gen-go-lite. DO NOT EDIT.
2
- // protoc-gen-go-lite version: v0.4.1
2
+ // protoc-gen-go-lite version: v0.4.3
3
3
  // source: github.com/aperturerobotics/starpc/echo/echo.proto
4
4
 
5
5
  package echo
package/go.mod CHANGED
@@ -3,7 +3,7 @@ module github.com/aperturerobotics/starpc
3
3
  go 1.22
4
4
 
5
5
  require (
6
- github.com/aperturerobotics/protobuf-go-lite v0.4.1 // latest
6
+ github.com/aperturerobotics/protobuf-go-lite v0.4.3 // latest
7
7
  github.com/aperturerobotics/util v1.17.1 // latest
8
8
  )
9
9
 
package/go.sum CHANGED
@@ -1,5 +1,5 @@
1
- github.com/aperturerobotics/protobuf-go-lite v0.4.1 h1:jd+DhFlf/f+L5gJPDCFrezBcaydCaxt5Keg0IJzJvOU=
2
- github.com/aperturerobotics/protobuf-go-lite v0.4.1/go.mod h1:wRZn4YydbTn8Bdx4NB6ms0doF19llgim+0SNBvQ7M9c=
1
+ github.com/aperturerobotics/protobuf-go-lite v0.4.3 h1:QDoO0ytzO71UWSPbaPi4XF5LfKYDJYxIBlimjYOh5nY=
2
+ github.com/aperturerobotics/protobuf-go-lite v0.4.3/go.mod h1:wRZn4YydbTn8Bdx4NB6ms0doF19llgim+0SNBvQ7M9c=
3
3
  github.com/aperturerobotics/util v1.17.1 h1:7qG1Am+vNAelbXCdYOYfnMaZKM28QBWVCi+zvkjo+d4=
4
4
  github.com/aperturerobotics/util v1.17.1/go.mod h1:NdGzI+NyJvqEwt+RkKPxOlKl9zUSWJMgKicNci7ZFMU=
5
5
  github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starpc",
3
- "version": "0.31.1",
3
+ "version": "0.31.2",
4
4
  "description": "Streaming protobuf RPC service protocol over any two-way channel.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -58,7 +58,7 @@
58
58
  "integration": "npm run test:integration",
59
59
  "lint": "npm run lint:go && npm run lint:js",
60
60
  "lint:go": "make lint",
61
- "lint:js": "ESLINT_USE_FLAT_CONFIG=false eslint -c .eslintrc.js --ignore-pattern *.js --ignore-pattern *.d.ts ./",
61
+ "lint:js": "ESLINT_USE_FLAT_CONFIG=false eslint -c .eslintrc.cjs --ignore-pattern *.js --ignore-pattern *.d.ts ./",
62
62
  "prepare": "go mod vendor",
63
63
  "precommit": "npm run format"
64
64
  },
@@ -1,5 +1,5 @@
1
1
  // Code generated by protoc-gen-go-lite. DO NOT EDIT.
2
- // protoc-gen-go-lite version: v0.4.1
2
+ // protoc-gen-go-lite version: v0.4.3
3
3
  // source: github.com/aperturerobotics/starpc/srpc/rpcproto.proto
4
4
 
5
5
  package srpc
@@ -89,15 +89,15 @@ type CallStart struct {
89
89
  unknownFields []byte
90
90
  // RpcService is the service to contact.
91
91
  // Must be set.
92
- RpcService string `protobuf:"bytes,1,opt,name=rpc_service,json=rpcService,proto3" json:"rpc_service,omitempty"`
92
+ RpcService string `protobuf:"bytes,1,opt,name=rpc_service,json=rpcService,proto3" json:"rpcService,omitempty"`
93
93
  // RpcMethod is the RPC method to call.
94
94
  // Must be set.
95
- RpcMethod string `protobuf:"bytes,2,opt,name=rpc_method,json=rpcMethod,proto3" json:"rpc_method,omitempty"`
95
+ RpcMethod string `protobuf:"bytes,2,opt,name=rpc_method,json=rpcMethod,proto3" json:"rpcMethod,omitempty"`
96
96
  // Data contains the request or the first message in the stream.
97
97
  // Optional if streaming.
98
98
  Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
99
99
  // DataIsZero indicates Data is set with an empty message.
100
- DataIsZero bool `protobuf:"varint,4,opt,name=data_is_zero,json=dataIsZero,proto3" json:"data_is_zero,omitempty"`
100
+ DataIsZero bool `protobuf:"varint,4,opt,name=data_is_zero,json=dataIsZero,proto3" json:"dataIsZero,omitempty"`
101
101
  }
102
102
 
103
103
  func (x *CallStart) Reset() {
@@ -140,7 +140,7 @@ type CallData struct {
140
140
  // Data contains the packet in the sequence.
141
141
  Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
142
142
  // DataIsZero indicates Data is set with an empty message.
143
- DataIsZero bool `protobuf:"varint,2,opt,name=data_is_zero,json=dataIsZero,proto3" json:"data_is_zero,omitempty"`
143
+ DataIsZero bool `protobuf:"varint,2,opt,name=data_is_zero,json=dataIsZero,proto3" json:"dataIsZero,omitempty"`
144
144
  // Complete indicates the RPC call is completed.
145
145
  Complete bool `protobuf:"varint,3,opt,name=complete,proto3" json:"complete,omitempty"`
146
146
  // Error contains any error that caused the RPC to fail.
@@ -438,15 +438,15 @@ func (x *Packet) MarshalProtoJSON(s *json.MarshalState) {
438
438
  switch ov := x.Body.(type) {
439
439
  case *Packet_CallStart:
440
440
  s.WriteMoreIf(&wroteField)
441
- s.WriteObjectField("call_start")
442
- ov.CallStart.MarshalProtoJSON(s.WithField("call_start"))
441
+ s.WriteObjectField("callStart")
442
+ ov.CallStart.MarshalProtoJSON(s.WithField("callStart"))
443
443
  case *Packet_CallData:
444
444
  s.WriteMoreIf(&wroteField)
445
- s.WriteObjectField("call_data")
446
- ov.CallData.MarshalProtoJSON(s.WithField("call_data"))
445
+ s.WriteObjectField("callData")
446
+ ov.CallData.MarshalProtoJSON(s.WithField("callData"))
447
447
  case *Packet_CallCancel:
448
448
  s.WriteMoreIf(&wroteField)
449
- s.WriteObjectField("call_cancel")
449
+ s.WriteObjectField("callCancel")
450
450
  s.WriteBool(ov.CallCancel)
451
451
  }
452
452
  }
@@ -507,14 +507,14 @@ func (x *CallStart) MarshalProtoJSON(s *json.MarshalState) {
507
507
  }
508
508
  s.WriteObjectStart()
509
509
  var wroteField bool
510
- if x.RpcService != "" || s.HasField("rpc_service") {
510
+ if x.RpcService != "" || s.HasField("rpcService") {
511
511
  s.WriteMoreIf(&wroteField)
512
- s.WriteObjectField("rpc_service")
512
+ s.WriteObjectField("rpcService")
513
513
  s.WriteString(x.RpcService)
514
514
  }
515
- if x.RpcMethod != "" || s.HasField("rpc_method") {
515
+ if x.RpcMethod != "" || s.HasField("rpcMethod") {
516
516
  s.WriteMoreIf(&wroteField)
517
- s.WriteObjectField("rpc_method")
517
+ s.WriteObjectField("rpcMethod")
518
518
  s.WriteString(x.RpcMethod)
519
519
  }
520
520
  if len(x.Data) > 0 || s.HasField("data") {
@@ -522,9 +522,9 @@ func (x *CallStart) MarshalProtoJSON(s *json.MarshalState) {
522
522
  s.WriteObjectField("data")
523
523
  s.WriteBytes(x.Data)
524
524
  }
525
- if x.DataIsZero || s.HasField("data_is_zero") {
525
+ if x.DataIsZero || s.HasField("dataIsZero") {
526
526
  s.WriteMoreIf(&wroteField)
527
- s.WriteObjectField("data_is_zero")
527
+ s.WriteObjectField("dataIsZero")
528
528
  s.WriteBool(x.DataIsZero)
529
529
  }
530
530
  s.WriteObjectEnd()
@@ -578,9 +578,9 @@ func (x *CallData) MarshalProtoJSON(s *json.MarshalState) {
578
578
  s.WriteObjectField("data")
579
579
  s.WriteBytes(x.Data)
580
580
  }
581
- if x.DataIsZero || s.HasField("data_is_zero") {
581
+ if x.DataIsZero || s.HasField("dataIsZero") {
582
582
  s.WriteMoreIf(&wroteField)
583
- s.WriteObjectField("data_is_zero")
583
+ s.WriteObjectField("dataIsZero")
584
584
  s.WriteBool(x.DataIsZero)
585
585
  }
586
586
  if x.Complete || s.HasField("complete") {