Skip to content

Commit bd90fb4

Browse files
committed
chore(client): Rename Call() -> Request() go-orb/go-orb#18
1 parent e2b025c commit bd90fb4

File tree

22 files changed

+340
-491
lines changed

22 files changed

+340
-491
lines changed

benchmarks/event/go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ module github.com/go-orb/examples/benchmarks/event
33
go 1.23.6
44

55
require (
6-
github.com/go-orb/go-orb v0.2.2-0.20250307104133-5994b6de19a3
7-
github.com/go-orb/plugins/cli/urfave v0.0.0-20250307115918-0861f248dff7
8-
github.com/go-orb/plugins/codecs/goccyjson v0.1.1-0.20250307115918-0861f248dff7
9-
github.com/go-orb/plugins/codecs/json v0.1.1-0.20250307115918-0861f248dff7
10-
github.com/go-orb/plugins/codecs/proto v0.1.1-0.20250307115918-0861f248dff7
11-
github.com/go-orb/plugins/event/natsjs v0.1.1-0.20250307115918-0861f248dff7
12-
github.com/go-orb/plugins/log/slog v0.1.1-0.20250307115918-0861f248dff7
6+
github.com/go-orb/go-orb v0.2.2-0.20250307141103-038ba03c3f37
7+
github.com/go-orb/plugins/cli/urfave v0.0.0-20250307142109-89a0ed05b479
8+
github.com/go-orb/plugins/codecs/goccyjson v0.1.1-0.20250307142109-89a0ed05b479
9+
github.com/go-orb/plugins/codecs/json v0.1.1-0.20250307142109-89a0ed05b479
10+
github.com/go-orb/plugins/codecs/proto v0.1.1-0.20250307142109-89a0ed05b479
11+
github.com/go-orb/plugins/event/natsjs v0.1.1-0.20250307142109-89a0ed05b479
12+
github.com/go-orb/plugins/log/slog v0.1.1-0.20250307142109-89a0ed05b479
1313
github.com/go-orb/wire v0.7.0
1414
google.golang.org/protobuf v1.36.5
1515
)

benchmarks/event/go.sum

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6 h1:XJtiaUW6dEEqVuZiMTn1ldk455QWwEIsMIJlo
44
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
55
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
66
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
7-
github.com/go-orb/go-orb v0.2.2-0.20250307104133-5994b6de19a3 h1:XucowTQ4/6bSxgpQm3/MgLjbgmV//eu3o+xl1qvp38o=
8-
github.com/go-orb/go-orb v0.2.2-0.20250307104133-5994b6de19a3/go.mod h1:TO/Gnyh+NGy5S5vZj9sYf+U9LSFhwUeAxdlxiPtj6PY=
9-
github.com/go-orb/plugins/cli/urfave v0.0.0-20250307115918-0861f248dff7 h1:ib+QPurWfgPnaLrku+KOc+7nwkc+rzavtsP2sdJnhVk=
10-
github.com/go-orb/plugins/cli/urfave v0.0.0-20250307115918-0861f248dff7/go.mod h1:+2yn0oSIJi7jWlXo7VZ13IaAhZBhZZBw6ns6TT67MCc=
11-
github.com/go-orb/plugins/codecs/goccyjson v0.1.1-0.20250307115918-0861f248dff7 h1:+JU8zkXe/F6UJ2mNfj+xJRKFB4ltC4HIy7eTD+1cCKM=
12-
github.com/go-orb/plugins/codecs/goccyjson v0.1.1-0.20250307115918-0861f248dff7/go.mod h1:ZMPIzEfGvVLlhP62IF2g6r0UShhbWaH8JI4e9Zi54rE=
13-
github.com/go-orb/plugins/codecs/json v0.1.1-0.20250307115918-0861f248dff7 h1:0C2a9AUJHeuEBHEfM8ap7pKOnKnOUhOMiR1kZMglIWA=
14-
github.com/go-orb/plugins/codecs/json v0.1.1-0.20250307115918-0861f248dff7/go.mod h1:Ki6skV5MRnKIevc5z9O+zbrrSRpwu34f+XUO6Ty6Vg4=
15-
github.com/go-orb/plugins/codecs/proto v0.1.1-0.20250307115918-0861f248dff7 h1:g9t8r/M1qeHUwOPrWxIJz/BHnO02kn8sFI/kAijExr4=
16-
github.com/go-orb/plugins/codecs/proto v0.1.1-0.20250307115918-0861f248dff7/go.mod h1:YKLI3OCEvr+KRsC4o7j+dD2PqTUkGHOfp2DxbH8/gH4=
17-
github.com/go-orb/plugins/event/natsjs v0.1.1-0.20250307115918-0861f248dff7 h1:/JCM+1djDbHZIgr+ddu8W5OTe68rd2rLGucY638O/YE=
18-
github.com/go-orb/plugins/event/natsjs v0.1.1-0.20250307115918-0861f248dff7/go.mod h1:6LgMcaCL2ZFH+Uk6BnWKum74554MYiQPzsa2efB/f6I=
19-
github.com/go-orb/plugins/log/slog v0.1.1-0.20250307115918-0861f248dff7 h1:q4jBd6RbU9LGSMcVHO0Ti61rZhfK8u1VQN5cAukoGgM=
20-
github.com/go-orb/plugins/log/slog v0.1.1-0.20250307115918-0861f248dff7/go.mod h1:8dRAeWdJfVKW80vNJ23gJjK/dq+PST0XqnUnMX2Lgq4=
7+
github.com/go-orb/go-orb v0.2.2-0.20250307141103-038ba03c3f37 h1:yrdb/3pkAWTFednJG2VsocSx5BvN9KHekly2p/kvLI8=
8+
github.com/go-orb/go-orb v0.2.2-0.20250307141103-038ba03c3f37/go.mod h1:TO/Gnyh+NGy5S5vZj9sYf+U9LSFhwUeAxdlxiPtj6PY=
9+
github.com/go-orb/plugins/cli/urfave v0.0.0-20250307142109-89a0ed05b479 h1:XLOxHuOirkv6GGdnYVhmMYCbi/S6Nv8i0XxZ2G/ZHwU=
10+
github.com/go-orb/plugins/cli/urfave v0.0.0-20250307142109-89a0ed05b479/go.mod h1:ZPkcMYjqv3JzJzlTdmMU8LzvzNjwWnRXQQXYr0oOFR0=
11+
github.com/go-orb/plugins/codecs/goccyjson v0.1.1-0.20250307142109-89a0ed05b479 h1:FlN3g1aG5ZZOuolrjs0snMjHxQHUnoexqyBzgdJDjZY=
12+
github.com/go-orb/plugins/codecs/goccyjson v0.1.1-0.20250307142109-89a0ed05b479/go.mod h1:R9zH4zq0+a4/kjCaiOJ0qwiMtCKJGOjhmfOmnz0K/QQ=
13+
github.com/go-orb/plugins/codecs/json v0.1.1-0.20250307142109-89a0ed05b479 h1:ItnoehtMq5P8NIypFQs6Yi5JGtvw92AxixI1VvO1eoI=
14+
github.com/go-orb/plugins/codecs/json v0.1.1-0.20250307142109-89a0ed05b479/go.mod h1:7jS2B6/GSV9OiuyCz7oe16YYGm/C2U8J7VrzPX0w0FA=
15+
github.com/go-orb/plugins/codecs/proto v0.1.1-0.20250307142109-89a0ed05b479 h1:+Em5nO7JGVuIxA8mnMYlIOk+khStDszKdSvuuaFkQmA=
16+
github.com/go-orb/plugins/codecs/proto v0.1.1-0.20250307142109-89a0ed05b479/go.mod h1:/6yE6L6JZgojhcObI3T82zxGSf0Tj8Rqx8vbEAHTwiM=
17+
github.com/go-orb/plugins/event/natsjs v0.1.1-0.20250307142109-89a0ed05b479 h1:3nwKzvCTxIuXyvr/R0jCWNUm81Oc4Nv9oZvSZsLCF0w=
18+
github.com/go-orb/plugins/event/natsjs v0.1.1-0.20250307142109-89a0ed05b479/go.mod h1:jIo/ROVAMPIHLZefsRwrNzCFBTZr1+5l7YN0yWnwRQw=
19+
github.com/go-orb/plugins/log/slog v0.1.1-0.20250307142109-89a0ed05b479 h1:AuaA8YMI7+RmkCk82bDwItnb/JPPEM5THtU1FYZDs8c=
20+
github.com/go-orb/plugins/log/slog v0.1.1-0.20250307142109-89a0ed05b479/go.mod h1:bwn1a/XGY2wPZFSmjkvUNNUKIKiJTQ0Ru/uQHIJfwmQ=
2121
github.com/go-orb/wire v0.7.0 h1:P9S100bM8nhAgW6e7EJrbi5vzNXCsP/Q1ByIEV5+hUQ=
2222
github.com/go-orb/wire v0.7.0/go.mod h1:/ID7hS6X2F32YnuRgh+k8R/sjucoh4qciqe7dq2dY7g=
2323
github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4=

benchmarks/rps/cmd/orb-rps-client/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ func connection(
8080
req := &echoproto.Req{Payload: msg}
8181

8282
// Run the query.
83-
resp, err := client.Call[echoproto.Resp](
83+
resp, err := client.Request[echoproto.Resp](
8484
ctx,
8585
cli,
8686
serverName,
87-
"echo.Echo/Echo",
87+
echoproto.EndpointEchoEcho,
8888
req,
8989
opts...,
9090
)
@@ -310,6 +310,7 @@ func main() {
310310

311311
_, err := run(appContext, os.Args, bench)
312312
if err != nil {
313+
//nolint:forbidigo
313314
fmt.Printf("run error: %s\n", err)
314315
os.Exit(1)
315316
}

benchmarks/rps/cmd/orb-rps-server/wire_gen.go

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

benchmarks/rps/go.mod

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@ module github.com/go-orb/examples/benchmarks/rps
33
go 1.23.6
44

55
require (
6-
github.com/go-orb/go-orb v0.2.2-0.20250307104133-5994b6de19a3
7-
github.com/go-orb/plugins-experimental/registry/mdns v0.0.0-20250307101910-8f66e8ea2671
8-
github.com/go-orb/plugins/client/orb v0.1.4-0.20250307115918-0861f248dff7
9-
github.com/go-orb/plugins/codecs/json v0.1.1-0.20250307115918-0861f248dff7
10-
github.com/go-orb/plugins/codecs/proto v0.1.1-0.20250307115918-0861f248dff7
11-
github.com/go-orb/plugins/codecs/yaml v0.1.1-0.20250307115918-0861f248dff7
12-
github.com/go-orb/plugins/config/source/file v0.1.1-0.20250307115918-0861f248dff7
13-
github.com/go-orb/plugins/log/lumberjack v0.1.1-0.20250307115918-0861f248dff7
14-
github.com/go-orb/plugins/log/slog v0.1.1-0.20250307115918-0861f248dff7
15-
github.com/go-orb/plugins/registry/consul v0.1.1-0.20250307115918-0861f248dff7
16-
github.com/go-orb/plugins/server/drpc v0.1.1-0.20250307115918-0861f248dff7
17-
github.com/go-orb/plugins/server/grpc v0.1.1-0.20250307115918-0861f248dff7
18-
github.com/go-orb/plugins/server/http v0.1.1-0.20250307115918-0861f248dff7
6+
github.com/go-orb/go-orb v0.2.2-0.20250307141103-038ba03c3f37
7+
github.com/go-orb/plugins-experimental/registry/mdns v0.0.0-20250307143039-087f14085771
8+
github.com/go-orb/plugins/cli/urfave v0.0.0-20250307142109-89a0ed05b479
9+
github.com/go-orb/plugins/client/orb v0.1.4-0.20250307142109-89a0ed05b479
10+
github.com/go-orb/plugins/client/orb_transport/drpc v0.0.0-20250307142109-89a0ed05b479
11+
github.com/go-orb/plugins/client/orb_transport/grpc v0.0.0-20250307142109-89a0ed05b479
12+
github.com/go-orb/plugins/client/orb_transport/h2c v0.0.0-20250307142109-89a0ed05b479
13+
github.com/go-orb/plugins/client/orb_transport/http v0.0.0-20250307142109-89a0ed05b479
14+
github.com/go-orb/plugins/client/orb_transport/http3 v0.0.0-20250307142109-89a0ed05b479
15+
github.com/go-orb/plugins/client/orb_transport/https v0.0.0-20250307142109-89a0ed05b479
16+
github.com/go-orb/plugins/codecs/json v0.1.1-0.20250307142109-89a0ed05b479
17+
github.com/go-orb/plugins/codecs/proto v0.1.1-0.20250307142109-89a0ed05b479
18+
github.com/go-orb/plugins/codecs/yaml v0.1.1-0.20250307142109-89a0ed05b479
19+
github.com/go-orb/plugins/config/source/file v0.1.1-0.20250307142109-89a0ed05b479
20+
github.com/go-orb/plugins/log/lumberjack v0.1.1-0.20250307142109-89a0ed05b479
21+
github.com/go-orb/plugins/log/slog v0.1.1-0.20250307142109-89a0ed05b479
22+
github.com/go-orb/plugins/registry/consul v0.1.1-0.20250307142109-89a0ed05b479
23+
github.com/go-orb/plugins/server/drpc v0.1.1-0.20250307142109-89a0ed05b479
24+
github.com/go-orb/plugins/server/grpc v0.1.1-0.20250307142109-89a0ed05b479
25+
github.com/go-orb/plugins/server/http v0.1.1-0.20250307142109-89a0ed05b479
1926
github.com/go-orb/wire v0.7.0
2027
google.golang.org/grpc v1.71.0
2128
google.golang.org/protobuf v1.36.5
@@ -28,10 +35,10 @@ require (
2835
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
2936
github.com/fatih/color v1.18.0 // indirect
3037
github.com/go-chi/chi/v5 v5.2.1 // indirect
31-
github.com/go-orb/plugins/registry/regutil v0.1.1-0.20250307115918-0861f248dff7 // indirect
38+
github.com/go-orb/plugins/client/orb_transport/basehttp v0.0.0-20250307142109-89a0ed05b479 // indirect
39+
github.com/go-orb/plugins/registry/regutil v0.1.1-0.20250307142109-89a0ed05b479 // indirect
3240
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
3341
github.com/google/pprof v0.0.0-20250302191652-9094ed2288e7 // indirect
34-
github.com/google/subcommands v1.2.0 // indirect
3542
github.com/google/uuid v1.6.0 // indirect
3643
github.com/hashicorp/consul/api v1.31.2 // indirect
3744
github.com/hashicorp/errwrap v1.1.0 // indirect
@@ -51,12 +58,11 @@ require (
5158
github.com/mitchellh/hashstructure v1.1.0 // indirect
5259
github.com/mitchellh/mapstructure v1.5.0 // indirect
5360
github.com/onsi/ginkgo/v2 v2.23.0 // indirect
54-
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
5561
github.com/quic-go/qpack v0.5.1 // indirect
5662
github.com/quic-go/quic-go v0.50.0 // indirect
5763
github.com/rogpeppe/go-internal v1.10.0 // indirect
5864
github.com/russross/blackfriday/v2 v2.1.0 // indirect
59-
github.com/urfave/cli/v2 v2.27.5 // indirect
65+
github.com/urfave/cli/v2 v2.27.6 // indirect
6066
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
6167
github.com/zeebo/errs v1.4.0 // indirect
6268
go.uber.org/mock v0.5.0 // indirect

0 commit comments

Comments
 (0)