starpc 0.35.5 → 0.36.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.
@@ -13,13 +13,20 @@ import (
13
13
  )
14
14
 
15
15
  type SRPCEchoerClient interface {
16
+ // SRPCClient returns the underlying SRPC client.
16
17
  SRPCClient() srpc.Client
17
18
 
19
+ // Echo returns the given message.
18
20
  Echo(ctx context.Context, in *EchoMsg) (*EchoMsg, error)
21
+ // EchoServerStream is an example of a server -> client one-way stream.
19
22
  EchoServerStream(ctx context.Context, in *EchoMsg) (SRPCEchoer_EchoServerStreamClient, error)
23
+ // EchoClientStream is an example of client->server one-way stream.
20
24
  EchoClientStream(ctx context.Context) (SRPCEchoer_EchoClientStreamClient, error)
25
+ // EchoBidiStream is an example of a two-way stream.
21
26
  EchoBidiStream(ctx context.Context) (SRPCEchoer_EchoBidiStreamClient, error)
27
+ // RpcStream opens a nested rpc call stream.
22
28
  RpcStream(ctx context.Context) (SRPCEchoer_RpcStreamClient, error)
29
+ // DoNothing does nothing.
23
30
  DoNothing(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error)
24
31
  }
25
32
 
@@ -216,11 +223,17 @@ func (c *srpcEchoerClient) DoNothing(ctx context.Context, in *emptypb.Empty) (*e
216
223
  }
217
224
 
218
225
  type SRPCEchoerServer interface {
226
+ // Echo returns the given message.
219
227
  Echo(context.Context, *EchoMsg) (*EchoMsg, error)
228
+ // EchoServerStream is an example of a server -> client one-way stream.
220
229
  EchoServerStream(*EchoMsg, SRPCEchoer_EchoServerStreamStream) error
230
+ // EchoClientStream is an example of client->server one-way stream.
221
231
  EchoClientStream(SRPCEchoer_EchoClientStreamStream) (*EchoMsg, error)
232
+ // EchoBidiStream is an example of a two-way stream.
222
233
  EchoBidiStream(SRPCEchoer_EchoBidiStreamStream) error
234
+ // RpcStream opens a nested rpc call stream.
223
235
  RpcStream(SRPCEchoer_RpcStreamStream) error
236
+ // DoNothing does nothing.
224
237
  DoNothing(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
225
238
  }
226
239
 
package/go.mod CHANGED
@@ -2,7 +2,7 @@ module github.com/aperturerobotics/starpc
2
2
 
3
3
  go 1.23
4
4
 
5
- toolchain go1.23.3
5
+ toolchain go1.23.4
6
6
 
7
7
  replace (
8
8
  // This fork uses go-protobuf-lite and adds post-quantum crypto support.
@@ -14,20 +14,20 @@ replace (
14
14
 
15
15
  require (
16
16
  github.com/aperturerobotics/protobuf-go-lite v0.8.0 // latest
17
- github.com/aperturerobotics/util v1.26.3 // latest
17
+ github.com/aperturerobotics/util v1.27.0 // latest
18
18
  )
19
19
 
20
20
  require (
21
21
  github.com/coder/websocket v1.8.12 // latest
22
- github.com/libp2p/go-libp2p v0.37.2 // latest
22
+ github.com/libp2p/go-libp2p v0.38.1 // latest
23
23
  github.com/libp2p/go-yamux/v4 v4.0.2-0.20240826150533-e92055b23e0e // master
24
24
  github.com/pkg/errors v0.9.1 // latest
25
25
  github.com/sirupsen/logrus v1.9.3 // latest
26
- google.golang.org/protobuf v1.35.2 // latest
26
+ google.golang.org/protobuf v1.36.0 // latest
27
27
  )
28
28
 
29
29
  require (
30
- github.com/aperturerobotics/json-iterator-lite v1.0.0 // indirect
30
+ github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20240713111131-be6bf89c3008 // indirect
31
31
  github.com/ipfs/go-cid v0.4.1 // indirect
32
32
  github.com/klauspost/cpuid/v2 v2.2.8 // indirect
33
33
  github.com/libp2p/go-buffer-pool v0.1.0 // indirect
@@ -42,7 +42,7 @@ require (
42
42
  github.com/multiformats/go-varint v0.0.7 // indirect
43
43
  github.com/spaolacci/murmur3 v1.1.0 // indirect
44
44
  golang.org/x/crypto v0.29.0 // indirect
45
- golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect
45
+ golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 // indirect
46
46
  golang.org/x/sys v0.27.0 // indirect
47
47
  lukechampine.com/blake3 v1.3.0 // indirect
48
48
  )
package/go.sum CHANGED
@@ -1,11 +1,11 @@
1
1
  github.com/aperturerobotics/go-libp2p v0.37.1-0.20241111002741-5cfbb50b74e0 h1:tGwbeDoEeQCrUQL+ClUywldqvz9eRmhcVrGwGxz2xJg=
2
2
  github.com/aperturerobotics/go-libp2p v0.37.1-0.20241111002741-5cfbb50b74e0/go.mod h1:FJkAtQcP9XxqG1NNLNHKm+wLVIGSCQX2s6CEoD+w97g=
3
- github.com/aperturerobotics/json-iterator-lite v1.0.0 h1:cihbrYWoK/S2RYXhJLpDZd+GUjVvFJN+D3w1VOqqHRI=
4
- github.com/aperturerobotics/json-iterator-lite v1.0.0/go.mod h1:snaApCEDtrHHP6UWSLKiYNOZU9A5NyzccKenx9oZEzg=
3
+ github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20240713111131-be6bf89c3008 h1:So9JeziaWKx2Fw8sK4AUN/szqKtJ0jEMhS6bU4sHbxs=
4
+ github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20240713111131-be6bf89c3008/go.mod h1:snaApCEDtrHHP6UWSLKiYNOZU9A5NyzccKenx9oZEzg=
5
5
  github.com/aperturerobotics/protobuf-go-lite v0.8.0 h1:SoiTAVArmOrNTX31e6CC5Bem6HuOElg3YYNhp4AAPQc=
6
6
  github.com/aperturerobotics/protobuf-go-lite v0.8.0/go.mod h1:y49wVEezRHg78uQ2OzLLZbtTTWuox+ChmaTuh6FLJW8=
7
- github.com/aperturerobotics/util v1.26.3 h1:Z7pjEJX27FDUQyP8OHlBcyEc8MGl8z/ZS1vpRBsIU9E=
8
- github.com/aperturerobotics/util v1.26.3/go.mod h1:D/N1pG02cPukZtwGggCeb8R/wq11Iy76xjSEGFYa06c=
7
+ github.com/aperturerobotics/util v1.27.0 h1:nNFFOQo1NcSfcMPjnzoqxOd7EXdTzLiCNugOm9aarHc=
8
+ github.com/aperturerobotics/util v1.27.0/go.mod h1:8u36NK8OBQM2qxoRU7VVCfiiP5EJ+oV3gHsmnhQoPEY=
9
9
  github.com/coder/websocket v1.8.12 h1:5bUXkEPPIbewrnkU8LTCLVaxi4N4J8ahufH2vlo4NAo=
10
10
  github.com/coder/websocket v1.8.12/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
11
11
  github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -55,14 +55,14 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT
55
55
  github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
56
56
  golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ=
57
57
  golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg=
58
- golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f h1:XdNn9LlyWAhLVp6P/i8QYBW+hlyhrhei9uErw2B5GJo=
59
- golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f/go.mod h1:D5SMRVC3C2/4+F/DB1wZsLRnSNimn2Sp/NPsCrsv8ak=
58
+ golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 h1:1UoZQm6f0P/ZO0w1Ri+f+ifG/gXhegadRdwBIXEFWDo=
59
+ golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67/go.mod h1:qj5a5QZpwLU2NLQudwIN5koi3beDhSAlJwa67PuM98c=
60
60
  golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
61
61
  golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
62
62
  golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=
63
63
  golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
64
- google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
65
- google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
64
+ google.golang.org/protobuf v1.36.0 h1:mjIs9gYtt56AzC4ZaffQuh88TZurBGhIJMBZGSxNerQ=
65
+ google.golang.org/protobuf v1.36.0/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
66
66
  gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
67
67
  gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
68
68
  gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
@@ -11,8 +11,10 @@ import (
11
11
  )
12
12
 
13
13
  type SRPCMockClient interface {
14
+ // SRPCClient returns the underlying SRPC client.
14
15
  SRPCClient() srpc.Client
15
16
 
17
+ // MockRequest runs a mock unary request.
16
18
  MockRequest(ctx context.Context, in *MockMsg) (*MockMsg, error)
17
19
  }
18
20
 
@@ -44,6 +46,7 @@ func (c *srpcMockClient) MockRequest(ctx context.Context, in *MockMsg) (*MockMsg
44
46
  }
45
47
 
46
48
  type SRPCMockServer interface {
49
+ // MockRequest runs a mock unary request.
47
50
  MockRequest(context.Context, *MockMsg) (*MockMsg, error)
48
51
  }
49
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starpc",
3
- "version": "0.35.5",
3
+ "version": "0.36.1",
4
4
  "description": "Streaming protobuf RPC service protocol over any two-way channel.",
5
5
  "license": "MIT",
6
6
  "author": {