Skip to content

Commit

Permalink
Upgrade to connectrpc.com/connect. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestNeller authored Jun 10, 2024
1 parent 6445509 commit 4cf3aa8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package doris
import (
"net/http"

"connectrpc.com/connect"
"github.com/altipla-consulting/errors"
"github.com/bufbuild/connect-go"
"github.com/rs/cors"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion errors.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package doris

import (
"connectrpc.com/connect"
"github.com/altipla-consulting/errors"
"github.com/bufbuild/connect-go"
)

func Errorf(code connect.Code, msg string, args ...any) error {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ module github.com/altipla-consulting/doris
go 1.21.4

require (
connectrpc.com/connect v1.16.2
github.com/VictoriaMetrics/metrics v1.33.1
github.com/altipla-consulting/env v0.2.2
github.com/altipla-consulting/errors v1.4.0
github.com/altipla-consulting/telemetry v0.7.1
github.com/bufbuild/connect-go v1.10.0
github.com/rs/cors v1.10.1
github.com/stretchr/testify v1.9.0
golang.org/x/net v0.22.0
golang.org/x/net v0.23.0
golang.org/x/sync v0.6.0
google.golang.org/protobuf v1.33.0
libs.altipla.consulting v1.186.0
Expand Down
20 changes: 4 additions & 16 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
connectrpc.com/connect v1.16.2 h1:ybd6y+ls7GOlb7Bh5C8+ghA6SvCBajHwxssO2CGFjqE=
connectrpc.com/connect v1.16.2/go.mod h1:n2kgwskMHXC+lVqb18wngEpF95ldBHXjZYJussz5FRc=
github.com/VictoriaMetrics/metrics v1.33.1 h1:CNV3tfm2Kpv7Y9W3ohmvqgFWPR55tV2c7M2U6OIo+UM=
github.com/VictoriaMetrics/metrics v1.33.1/go.mod h1:r7hveu6xMdUACXvB8TYdAj8WEsKzWB0EkpJN+RDtOf8=
github.com/altipla-consulting/env v0.2.2 h1:EbBAe5tMYNaOVhiVzRxNL39u7hKaerSBhF+lwltE6ok=
github.com/altipla-consulting/env v0.2.2/go.mod h1:0wGCiA8OUISdQbBVS5bBeJAteFThsVuQAgDIZUYDFiA=
github.com/altipla-consulting/errors v1.4.0 h1:ofrY4Ntug8hWOC5tWtD0hGcyg/NthGGyttEbMpFrPww=
github.com/altipla-consulting/errors v1.4.0/go.mod h1:x2/+JzMSga6sEUe8FNKIwWRshteAnNJo2WY81m3US6o=
github.com/altipla-consulting/sentry v0.4.5 h1:5VY2H7kpTz4KyrfheJGyMIXuJc82EvO3j4hOWSziDK4=
github.com/altipla-consulting/sentry v0.4.5/go.mod h1:JKfzihHOFBSTmoXEbhE+HtmuaLwnMv4c+SrLOJjaRRE=
github.com/altipla-consulting/sentry v0.5.0 h1:AUngNPdDmN8zf+C5M1lenZbN9rI2GMHviX3AYhvKR0o=
github.com/altipla-consulting/sentry v0.5.0/go.mod h1:Hqe8hG/i4J4ix+Dt5Kn45jUhFOsk0/nTYEZfL4ajLX4=
github.com/altipla-consulting/sentry v0.5.1 h1:D7NYyikiAzSMJ8u+jeLKZ73AUkmrtA9II3y+oRqOC/0=
github.com/altipla-consulting/sentry v0.5.1/go.mod h1:Hqe8hG/i4J4ix+Dt5Kn45jUhFOsk0/nTYEZfL4ajLX4=
github.com/altipla-consulting/telemetry v0.5.2 h1:RokznBrjUZQp+RC5plQ6gSSnkXV1M2VKv4Cdf9LrGS8=
github.com/altipla-consulting/telemetry v0.5.2/go.mod h1:T7C7MjAszVvTFoTVApMTT2p+Q3h1q9qdfCPDw7XXKIk=
github.com/altipla-consulting/telemetry v0.7.0 h1:IYtA58bZKr17w/NycQHQ+s6aUhYWiNAuu5kafPgFGJU=
github.com/altipla-consulting/telemetry v0.7.0/go.mod h1:MA7qqOKCUqnJ8ifeN/JcfQp/B7omT4pPRwVLM6u2tk8=
github.com/altipla-consulting/telemetry v0.7.1 h1:R8KV+OjoP7AJ4SOdF+yXBCY5h/+o80GZfMcJhbGPlT4=
github.com/altipla-consulting/telemetry v0.7.1/go.mod h1:OJsZPt763CAyK3sy/ObcGvYC/LT0bkNzGrgwEubH8NM=
github.com/bufbuild/connect-go v1.10.0 h1:QAJ3G9A1OYQW2Jbk3DeoJbkCxuKArrvZgDt47mjdTbg=
github.com/bufbuild/connect-go v1.10.0/go.mod h1:CAIePUgkDR5pAFaylSMtNK45ANQjp9JvpluG20rhpV8=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps=
Expand All @@ -44,16 +36,12 @@ github.com/valyala/fastrand v1.1.0 h1:f+5HkLW4rsgzdNoleUOB69hyT9IlD2ZQh9GyDMfb5G
github.com/valyala/fastrand v1.1.0/go.mod h1:HWqCzkrkg6QXT8V2EXWvXCoow7vLwOFN002oeRzjapQ=
github.com/valyala/histogram v1.2.0 h1:wyYGAZZt3CpwUiIb9AU/Zbllg1llXyrtApRS815OLoQ=
github.com/valyala/histogram v1.2.0/go.mod h1:Hb4kBwb4UxsaNbbbh+RRz8ZR6pdodR57tzWUS3BUzXY=
golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc=
golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
Expand Down
2 changes: 1 addition & 1 deletion interceptors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log/slog"
"time"

"connectrpc.com/connect"
"github.com/altipla-consulting/env"
"github.com/altipla-consulting/errors"
"github.com/altipla-consulting/telemetry"
"github.com/bufbuild/connect-go"
"google.golang.org/protobuf/proto"
)

Expand Down

0 comments on commit 4cf3aa8

Please sign in to comment.