starpc 0.29.0 → 0.29.1
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.
- package/e2e/mock/mock.pb.go +5 -5
- package/echo/echo.pb.go +5 -5
- package/go.mod +5 -8
- package/go.sum +2 -2
- package/package.json +1 -1
- package/srpc/rpcproto.pb.go +19 -19
package/e2e/mock/mock.pb.go
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Code generated by protoc-gen-go-lite. DO NOT EDIT.
|
|
2
|
-
// protoc-gen-go-lite version: v0.2.
|
|
2
|
+
// protoc-gen-go-lite version: v0.2.4
|
|
3
3
|
// source: github.com/aperturerobotics/starpc/e2e/mock/mock.proto
|
|
4
4
|
|
|
5
5
|
package e2e_mock
|
|
6
6
|
|
|
7
7
|
import (
|
|
8
|
-
fmt "fmt"
|
|
9
8
|
io "io"
|
|
10
9
|
|
|
11
10
|
protohelpers "github.com/aperturerobotics/protobuf-go-lite/protohelpers"
|
|
11
|
+
errors "github.com/pkg/errors"
|
|
12
12
|
)
|
|
13
13
|
|
|
14
14
|
// MockMsg is the mock message body.
|
|
@@ -143,15 +143,15 @@ func (m *MockMsg) UnmarshalVT(dAtA []byte) error {
|
|
|
143
143
|
fieldNum := int32(wire >> 3)
|
|
144
144
|
wireType := int(wire & 0x7)
|
|
145
145
|
if wireType == 4 {
|
|
146
|
-
return
|
|
146
|
+
return errors.Errorf("proto: MockMsg: wiretype end group for non-group")
|
|
147
147
|
}
|
|
148
148
|
if fieldNum <= 0 {
|
|
149
|
-
return
|
|
149
|
+
return errors.Errorf("proto: MockMsg: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
150
150
|
}
|
|
151
151
|
switch fieldNum {
|
|
152
152
|
case 1:
|
|
153
153
|
if wireType != 2 {
|
|
154
|
-
return
|
|
154
|
+
return errors.Errorf("proto: wrong wireType = %d for field Body", wireType)
|
|
155
155
|
}
|
|
156
156
|
var stringLen uint64
|
|
157
157
|
for shift := uint(0); ; shift += 7 {
|
package/echo/echo.pb.go
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// Code generated by protoc-gen-go-lite. DO NOT EDIT.
|
|
2
|
-
// protoc-gen-go-lite version: v0.2.
|
|
2
|
+
// protoc-gen-go-lite version: v0.2.4
|
|
3
3
|
// source: github.com/aperturerobotics/starpc/echo/echo.proto
|
|
4
4
|
|
|
5
5
|
package echo
|
|
6
6
|
|
|
7
7
|
import (
|
|
8
|
-
fmt "fmt"
|
|
9
8
|
io "io"
|
|
10
9
|
|
|
11
10
|
protohelpers "github.com/aperturerobotics/protobuf-go-lite/protohelpers"
|
|
12
11
|
_ "github.com/aperturerobotics/starpc/rpcstream"
|
|
12
|
+
errors "github.com/pkg/errors"
|
|
13
13
|
)
|
|
14
14
|
|
|
15
15
|
// EchoMsg is the message body for Echo.
|
|
@@ -144,15 +144,15 @@ func (m *EchoMsg) UnmarshalVT(dAtA []byte) error {
|
|
|
144
144
|
fieldNum := int32(wire >> 3)
|
|
145
145
|
wireType := int(wire & 0x7)
|
|
146
146
|
if wireType == 4 {
|
|
147
|
-
return
|
|
147
|
+
return errors.Errorf("proto: EchoMsg: wiretype end group for non-group")
|
|
148
148
|
}
|
|
149
149
|
if fieldNum <= 0 {
|
|
150
|
-
return
|
|
150
|
+
return errors.Errorf("proto: EchoMsg: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
151
151
|
}
|
|
152
152
|
switch fieldNum {
|
|
153
153
|
case 1:
|
|
154
154
|
if wireType != 2 {
|
|
155
|
-
return
|
|
155
|
+
return errors.Errorf("proto: wrong wireType = %d for field Body", wireType)
|
|
156
156
|
}
|
|
157
157
|
var stringLen uint64
|
|
158
158
|
for shift := uint(0); ; shift += 7 {
|
package/go.mod
CHANGED
|
@@ -2,23 +2,20 @@ module github.com/aperturerobotics/starpc
|
|
|
2
2
|
|
|
3
3
|
go 1.22
|
|
4
4
|
|
|
5
|
-
toolchain go1.22.1
|
|
6
|
-
|
|
7
5
|
require (
|
|
8
|
-
github.com/
|
|
9
|
-
|
|
10
|
-
nhooyr.io/websocket v1.8.11 // latest
|
|
6
|
+
github.com/aperturerobotics/protobuf-go-lite v0.2.4
|
|
7
|
+
github.com/aperturerobotics/util v1.16.5 // latest
|
|
11
8
|
)
|
|
12
9
|
|
|
13
10
|
require (
|
|
14
|
-
github.com/aperturerobotics/util v1.16.5 // latest
|
|
15
11
|
github.com/libp2p/go-libp2p v0.33.2 // latest
|
|
16
12
|
github.com/libp2p/go-yamux/v4 v4.0.2-0.20240322071716-53ef5820bd48 // master
|
|
13
|
+
github.com/pkg/errors v0.9.1 // latest
|
|
17
14
|
github.com/sirupsen/logrus v1.9.3 // latest
|
|
15
|
+
google.golang.org/protobuf v1.33.0 // latest
|
|
16
|
+
nhooyr.io/websocket v1.8.11 // latest
|
|
18
17
|
)
|
|
19
18
|
|
|
20
|
-
require github.com/aperturerobotics/protobuf-go-lite v0.2.3
|
|
21
|
-
|
|
22
19
|
require (
|
|
23
20
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
|
|
24
21
|
github.com/ipfs/go-cid v0.4.1 // indirect
|
package/go.sum
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
github.com/aperturerobotics/protobuf-go-lite v0.2.
|
|
2
|
-
github.com/aperturerobotics/protobuf-go-lite v0.2.
|
|
1
|
+
github.com/aperturerobotics/protobuf-go-lite v0.2.4 h1:BaEBcTP01WSatsarPb7O58ejm7Yx7VcRZkR1fPKtOD4=
|
|
2
|
+
github.com/aperturerobotics/protobuf-go-lite v0.2.4/go.mod h1:uGsGl8o72hBjkAqBVz2kepXKeA7BZDiqCZPyHjw2yws=
|
|
3
3
|
github.com/aperturerobotics/util v1.16.5 h1:zW6l07O1cCZMG+cbE08D5gv6p/tYfGipGRO5WaXpd1c=
|
|
4
4
|
github.com/aperturerobotics/util v1.16.5/go.mod h1:UzxQN3nK8D+T7ruiBqvNiZOuEerkgsM1fN8eAvjsIMo=
|
|
5
5
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
package/package.json
CHANGED
package/srpc/rpcproto.pb.go
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Code generated by protoc-gen-go-lite. DO NOT EDIT.
|
|
2
|
-
// protoc-gen-go-lite version: v0.2.
|
|
2
|
+
// protoc-gen-go-lite version: v0.2.4
|
|
3
3
|
// source: github.com/aperturerobotics/starpc/srpc/rpcproto.proto
|
|
4
4
|
|
|
5
5
|
package srpc
|
|
6
6
|
|
|
7
7
|
import (
|
|
8
|
-
fmt "fmt"
|
|
9
8
|
io "io"
|
|
10
9
|
|
|
11
10
|
protohelpers "github.com/aperturerobotics/protobuf-go-lite/protohelpers"
|
|
11
|
+
errors "github.com/pkg/errors"
|
|
12
12
|
)
|
|
13
13
|
|
|
14
14
|
// Packet is a message sent over a srpc packet connection.
|
|
@@ -782,15 +782,15 @@ func (m *Packet) UnmarshalVT(dAtA []byte) error {
|
|
|
782
782
|
fieldNum := int32(wire >> 3)
|
|
783
783
|
wireType := int(wire & 0x7)
|
|
784
784
|
if wireType == 4 {
|
|
785
|
-
return
|
|
785
|
+
return errors.Errorf("proto: Packet: wiretype end group for non-group")
|
|
786
786
|
}
|
|
787
787
|
if fieldNum <= 0 {
|
|
788
|
-
return
|
|
788
|
+
return errors.Errorf("proto: Packet: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
789
789
|
}
|
|
790
790
|
switch fieldNum {
|
|
791
791
|
case 1:
|
|
792
792
|
if wireType != 2 {
|
|
793
|
-
return
|
|
793
|
+
return errors.Errorf("proto: wrong wireType = %d for field CallStart", wireType)
|
|
794
794
|
}
|
|
795
795
|
var msglen int
|
|
796
796
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -831,7 +831,7 @@ func (m *Packet) UnmarshalVT(dAtA []byte) error {
|
|
|
831
831
|
iNdEx = postIndex
|
|
832
832
|
case 2:
|
|
833
833
|
if wireType != 2 {
|
|
834
|
-
return
|
|
834
|
+
return errors.Errorf("proto: wrong wireType = %d for field CallData", wireType)
|
|
835
835
|
}
|
|
836
836
|
var msglen int
|
|
837
837
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -872,7 +872,7 @@ func (m *Packet) UnmarshalVT(dAtA []byte) error {
|
|
|
872
872
|
iNdEx = postIndex
|
|
873
873
|
case 3:
|
|
874
874
|
if wireType != 0 {
|
|
875
|
-
return
|
|
875
|
+
return errors.Errorf("proto: wrong wireType = %d for field CallCancel", wireType)
|
|
876
876
|
}
|
|
877
877
|
var v int
|
|
878
878
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -936,15 +936,15 @@ func (m *CallStart) UnmarshalVT(dAtA []byte) error {
|
|
|
936
936
|
fieldNum := int32(wire >> 3)
|
|
937
937
|
wireType := int(wire & 0x7)
|
|
938
938
|
if wireType == 4 {
|
|
939
|
-
return
|
|
939
|
+
return errors.Errorf("proto: CallStart: wiretype end group for non-group")
|
|
940
940
|
}
|
|
941
941
|
if fieldNum <= 0 {
|
|
942
|
-
return
|
|
942
|
+
return errors.Errorf("proto: CallStart: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
943
943
|
}
|
|
944
944
|
switch fieldNum {
|
|
945
945
|
case 1:
|
|
946
946
|
if wireType != 2 {
|
|
947
|
-
return
|
|
947
|
+
return errors.Errorf("proto: wrong wireType = %d for field RpcService", wireType)
|
|
948
948
|
}
|
|
949
949
|
var stringLen uint64
|
|
950
950
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -976,7 +976,7 @@ func (m *CallStart) UnmarshalVT(dAtA []byte) error {
|
|
|
976
976
|
iNdEx = postIndex
|
|
977
977
|
case 2:
|
|
978
978
|
if wireType != 2 {
|
|
979
|
-
return
|
|
979
|
+
return errors.Errorf("proto: wrong wireType = %d for field RpcMethod", wireType)
|
|
980
980
|
}
|
|
981
981
|
var stringLen uint64
|
|
982
982
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -1008,7 +1008,7 @@ func (m *CallStart) UnmarshalVT(dAtA []byte) error {
|
|
|
1008
1008
|
iNdEx = postIndex
|
|
1009
1009
|
case 3:
|
|
1010
1010
|
if wireType != 2 {
|
|
1011
|
-
return
|
|
1011
|
+
return errors.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
1012
1012
|
}
|
|
1013
1013
|
var byteLen int
|
|
1014
1014
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -1042,7 +1042,7 @@ func (m *CallStart) UnmarshalVT(dAtA []byte) error {
|
|
|
1042
1042
|
iNdEx = postIndex
|
|
1043
1043
|
case 4:
|
|
1044
1044
|
if wireType != 0 {
|
|
1045
|
-
return
|
|
1045
|
+
return errors.Errorf("proto: wrong wireType = %d for field DataIsZero", wireType)
|
|
1046
1046
|
}
|
|
1047
1047
|
var v int
|
|
1048
1048
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -1105,15 +1105,15 @@ func (m *CallData) UnmarshalVT(dAtA []byte) error {
|
|
|
1105
1105
|
fieldNum := int32(wire >> 3)
|
|
1106
1106
|
wireType := int(wire & 0x7)
|
|
1107
1107
|
if wireType == 4 {
|
|
1108
|
-
return
|
|
1108
|
+
return errors.Errorf("proto: CallData: wiretype end group for non-group")
|
|
1109
1109
|
}
|
|
1110
1110
|
if fieldNum <= 0 {
|
|
1111
|
-
return
|
|
1111
|
+
return errors.Errorf("proto: CallData: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
1112
1112
|
}
|
|
1113
1113
|
switch fieldNum {
|
|
1114
1114
|
case 1:
|
|
1115
1115
|
if wireType != 2 {
|
|
1116
|
-
return
|
|
1116
|
+
return errors.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
1117
1117
|
}
|
|
1118
1118
|
var byteLen int
|
|
1119
1119
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -1147,7 +1147,7 @@ func (m *CallData) UnmarshalVT(dAtA []byte) error {
|
|
|
1147
1147
|
iNdEx = postIndex
|
|
1148
1148
|
case 2:
|
|
1149
1149
|
if wireType != 0 {
|
|
1150
|
-
return
|
|
1150
|
+
return errors.Errorf("proto: wrong wireType = %d for field DataIsZero", wireType)
|
|
1151
1151
|
}
|
|
1152
1152
|
var v int
|
|
1153
1153
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -1167,7 +1167,7 @@ func (m *CallData) UnmarshalVT(dAtA []byte) error {
|
|
|
1167
1167
|
m.DataIsZero = bool(v != 0)
|
|
1168
1168
|
case 3:
|
|
1169
1169
|
if wireType != 0 {
|
|
1170
|
-
return
|
|
1170
|
+
return errors.Errorf("proto: wrong wireType = %d for field Complete", wireType)
|
|
1171
1171
|
}
|
|
1172
1172
|
var v int
|
|
1173
1173
|
for shift := uint(0); ; shift += 7 {
|
|
@@ -1187,7 +1187,7 @@ func (m *CallData) UnmarshalVT(dAtA []byte) error {
|
|
|
1187
1187
|
m.Complete = bool(v != 0)
|
|
1188
1188
|
case 4:
|
|
1189
1189
|
if wireType != 2 {
|
|
1190
|
-
return
|
|
1190
|
+
return errors.Errorf("proto: wrong wireType = %d for field Error", wireType)
|
|
1191
1191
|
}
|
|
1192
1192
|
var stringLen uint64
|
|
1193
1193
|
for shift := uint(0); ; shift += 7 {
|