Skip to content

Commit 8a40199

Browse files
committed
Updated packages
1 parent 055869b commit 8a40199

File tree

7 files changed

+480
-199
lines changed

7 files changed

+480
-199
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Packages which use in this example project
4343
8. [mux](https://github.com/gorilla/mux) - http router
4444
9. [nats-streaming](https://github.com/nats-io/stan.go) - NATS Streaming System
4545
10. [gqlgen](https://github.com/99designs/gqlgen) - graphql server library
46-
11. [protobuf](https://github.com/golang/protobuf) - Google's data interchange format
46+
11. [protobuf](https://pkg.go.dev/google.golang.org/protobuf) - Google's data interchange format
4747
12. [grpc](google.golang.org/grpc) - RPC framework
4848
13. [jaeger](https://github.com/uber/jaeger-client-go) - Jaeger Bindings for Go OpenTracing API
4949
14. [casbin](https://github.com/casbin/casbin) - Supports access control

app/auth/middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/aristat/golang-example-app/app/entrypoint"
1313

14-
"github.com/dgrijalva/jwt-go"
14+
"github.com/golang-jwt/jwt"
1515

1616
appContext "github.com/aristat/golang-example-app/app/context"
1717
"github.com/pkg/errors"

cmd/health-check-service/health_check_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/aristat/golang-example-app/app/common"
1717

1818
"github.com/aristat/golang-example-app/generated/resources/proto/health_checks"
19-
"github.com/golang/protobuf/ptypes/empty"
19+
emptypb "google.golang.org/protobuf/types/known/emptypb"
2020

2121
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
2222

@@ -35,7 +35,7 @@ type server struct {
3535
health_checks.UnimplementedHealthChecksServer
3636
}
3737

38-
func (s *server) IsAlive(ctx context.Context, empty *empty.Empty) (*health_checks.IsAliveOut, error) {
38+
func (s *server) IsAlive(ctx context.Context, empty *emptypb.Empty) (*health_checks.IsAliveOut, error) {
3939
if s.cfg.RandomDisable {
4040
return &health_checks.IsAliveOut{Status: health_checks.IsAliveOut_OK}, nil
4141
}

cmd/jwt/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/spf13/cast"
1111

12-
"github.com/dgrijalva/jwt-go"
12+
"github.com/golang-jwt/jwt"
1313
"github.com/spf13/cobra"
1414
)
1515

cmd/product-service/product_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import (
1818

1919
"github.com/aristat/golang-example-app/generated/resources/proto/health_checks"
2020
"github.com/aristat/golang-example-app/generated/resources/proto/products"
21-
"github.com/golang/protobuf/ptypes/empty"
2221
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
2322
grpc_opentracing "github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing"
23+
emptypb "google.golang.org/protobuf/types/known/emptypb"
2424

2525
"github.com/spf13/cobra"
2626
"google.golang.org/grpc"
@@ -65,7 +65,7 @@ func (s *server) ListProduct(ctx context.Context, in *products.ListProductIn) (*
6565

6666
ctx, cancel := context.WithTimeout(ctx, time.Second)
6767
defer cancel()
68-
isAliveOut, err := c.IsAlive(ctx, &empty.Empty{})
68+
isAliveOut, err := c.IsAlive(ctx, &emptypb.Empty{})
6969
if err != nil {
7070
return nil, err
7171
}

go.mod

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,41 @@ require (
55
github.com/HdrHistogram/hdrhistogram-go v1.1.1 // indirect
66
github.com/agnivade/levenshtein v1.1.0 // indirect
77
github.com/casbin/casbin v1.9.1
8-
github.com/dgrijalva/jwt-go v3.2.0+incompatible
98
github.com/go-chi/chi v4.0.2+incompatible
109
github.com/go-session/session v3.1.2+incompatible
11-
github.com/golang/protobuf v1.5.2
12-
github.com/google/subcommands v1.2.0 // indirect
10+
github.com/golang-jwt/jwt v3.2.2+incompatible
1311
github.com/google/wire v0.5.0
1412
github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4
15-
github.com/hashicorp/go-uuid v1.0.1 // indirect
1613
github.com/hashicorp/golang-lru v0.5.4 // indirect
1714
github.com/jinzhu/gorm v1.9.10
18-
github.com/lib/pq v1.10.0
19-
github.com/magiconair/properties v1.8.1 // indirect
20-
github.com/mitchellh/mapstructure v1.3.3
21-
github.com/nats-io/nats-streaming-server v0.18.0 // indirect
22-
github.com/nats-io/nats.go v1.10.0
23-
github.com/nats-io/stan.go v0.7.0
15+
github.com/lib/pq v1.10.4
16+
github.com/mitchellh/mapstructure v1.4.1
17+
github.com/nats-io/nats-streaming-server v0.24.5 // indirect
18+
github.com/nats-io/nats.go v1.14.0
19+
github.com/nats-io/stan.go v0.10.2
2420
github.com/opentracing-contrib/go-stdlib v0.0.0-20190519235532-cf7a6c988dc9
2521
github.com/opentracing/opentracing-go v1.2.0
26-
github.com/pelletier/go-toml v1.4.0 // indirect
2722
github.com/pkg/errors v0.9.1
2823
github.com/processout/grpc-go-pool v1.2.1
29-
github.com/rubenv/sql-migrate v0.0.0-20210614095031-55d5740dbbcc
24+
github.com/rubenv/sql-migrate v1.1.1
3025
github.com/selvatico/go-mocket v1.0.7
31-
github.com/smartystreets/goconvey v1.6.4 // indirect
32-
github.com/spf13/afero v1.2.2 // indirect
33-
github.com/spf13/cast v1.3.0
34-
github.com/spf13/cobra v0.0.6
35-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
36-
github.com/spf13/viper v1.4.0
26+
github.com/spf13/cast v1.3.1
27+
github.com/spf13/cobra v1.2.1
28+
github.com/spf13/viper v1.8.1
3729
github.com/stretchr/testify v1.7.0
3830
github.com/uber/jaeger-client-go v2.29.1+incompatible
3931
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
40-
github.com/vektah/dataloaden v0.3.0 // indirect
4132
github.com/vektah/gqlparser/v2 v2.0.1
42-
github.com/ziutek/mymysql v1.5.4 // indirect
4333
go.uber.org/atomic v1.9.0 // indirect
4434
go.uber.org/automaxprocs v1.2.0
45-
go.uber.org/zap v1.13.0
46-
golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a
47-
golang.org/x/mod v0.5.0 // indirect
48-
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect
49-
golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55 // indirect
35+
go.uber.org/zap v1.17.0
36+
golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd
37+
golang.org/x/sys v0.0.0-20220429233432-b5fbb4746d32 // indirect
5038
golang.org/x/text v0.3.7 // indirect
39+
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
5140
google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8 // indirect
5241
google.golang.org/grpc v1.40.0
5342
google.golang.org/protobuf v1.27.1
54-
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
5543
)
5644

5745
go 1.13

0 commit comments

Comments
 (0)