diff --git a/pkg/messaging/message.pb.go b/pkg/messaging/message.pb.go index 64c36b42..aadd1a50 100644 --- a/pkg/messaging/message.pb.go +++ b/pkg/messaging/message.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.12 +// protoc-gen-go v1.31.0 +// protoc v4.23.3 // source: pkg/messaging/message.proto package messaging diff --git a/scripts/ci.sh b/scripts/ci.sh index 3933691a..6b03905c 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -1,9 +1,9 @@ # This script contains commands to be executed by the CI tool. NPROC=$(nproc) GO_VERSION=1.19.4 -PROTOC_VERSION=21.12 -PROTOC_GEN_VERSION=v1.28.1 -PROTOC_GRPC_VERSION=v1.2.0 +PROTOC_VERSION=23.3 +PROTOC_GEN_VERSION=v1.31.0 +PROTOC_GRPC_VERSION=v1.3.0 GOLANGCI_LINT_VERSION=v1.52.1 function version_gt() { test "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1"; } @@ -36,7 +36,7 @@ setup_protoc() { unzip -o $PROTOC_ZIP -d protoc3 sudo mv protoc3/bin/* /usr/local/bin/ sudo mv protoc3/include/* /usr/local/include/ - rm -f PROTOC_ZIP + rm -rf $PROTOC_ZIP protoc3 go install google.golang.org/protobuf/cmd/protoc-gen-go@$PROTOC_GEN_VERSION go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@$PROTOC_GRPC_VERSION diff --git a/things/policies/auth.pb.go b/things/policies/auth.pb.go index de58e76e..0c744a15 100644 --- a/things/policies/auth.pb.go +++ b/things/policies/auth.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.12 +// protoc-gen-go v1.31.0 +// protoc v4.23.3 // source: things/policies/auth.proto package policies diff --git a/things/policies/auth_grpc.pb.go b/things/policies/auth_grpc.pb.go index a374bea8..0d62bb6a 100644 --- a/things/policies/auth_grpc.pb.go +++ b/things/policies/auth_grpc.pb.go @@ -1,7 +1,10 @@ +// Copyright (c) Mainflux +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.12 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v4.23.3 // source: things/policies/auth.proto package policies @@ -18,6 +21,11 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + ThingsService_Authorize_FullMethodName = "/mainflux.things.policies.ThingsService/Authorize" + ThingsService_Identify_FullMethodName = "/mainflux.things.policies.ThingsService/Identify" +) + // ThingsServiceClient is the client API for ThingsService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -36,7 +44,7 @@ func NewThingsServiceClient(cc grpc.ClientConnInterface) ThingsServiceClient { func (c *thingsServiceClient) Authorize(ctx context.Context, in *AuthorizeReq, opts ...grpc.CallOption) (*AuthorizeRes, error) { out := new(AuthorizeRes) - err := c.cc.Invoke(ctx, "/mainflux.things.policies.ThingsService/Authorize", in, out, opts...) + err := c.cc.Invoke(ctx, ThingsService_Authorize_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -45,7 +53,7 @@ func (c *thingsServiceClient) Authorize(ctx context.Context, in *AuthorizeReq, o func (c *thingsServiceClient) Identify(ctx context.Context, in *Key, opts ...grpc.CallOption) (*ClientID, error) { out := new(ClientID) - err := c.cc.Invoke(ctx, "/mainflux.things.policies.ThingsService/Identify", in, out, opts...) + err := c.cc.Invoke(ctx, ThingsService_Identify_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -94,7 +102,7 @@ func _ThingsService_Authorize_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mainflux.things.policies.ThingsService/Authorize", + FullMethod: ThingsService_Authorize_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ThingsServiceServer).Authorize(ctx, req.(*AuthorizeReq)) @@ -112,7 +120,7 @@ func _ThingsService_Identify_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mainflux.things.policies.ThingsService/Identify", + FullMethod: ThingsService_Identify_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ThingsServiceServer).Identify(ctx, req.(*Key)) diff --git a/users/policies/auth.pb.go b/users/policies/auth.pb.go index 22c99470..a2b3e879 100644 --- a/users/policies/auth.pb.go +++ b/users/policies/auth.pb.go @@ -3,8 +3,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.12 +// protoc-gen-go v1.31.0 +// protoc v4.23.3 // source: users/policies/auth.proto package policies diff --git a/users/policies/auth_grpc.pb.go b/users/policies/auth_grpc.pb.go index af14230b..6ed001f6 100644 --- a/users/policies/auth_grpc.pb.go +++ b/users/policies/auth_grpc.pb.go @@ -1,7 +1,10 @@ +// Copyright (c) Mainflux +// SPDX-License-Identifier: Apache-2.0 + // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.12 +// - protoc-gen-go-grpc v1.3.0 +// - protoc v4.23.3 // source: users/policies/auth.proto package policies @@ -18,6 +21,15 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + AuthService_Authorize_FullMethodName = "/mainflux.users.policies.AuthService/Authorize" + AuthService_Issue_FullMethodName = "/mainflux.users.policies.AuthService/Issue" + AuthService_Identify_FullMethodName = "/mainflux.users.policies.AuthService/Identify" + AuthService_AddPolicy_FullMethodName = "/mainflux.users.policies.AuthService/AddPolicy" + AuthService_DeletePolicy_FullMethodName = "/mainflux.users.policies.AuthService/DeletePolicy" + AuthService_ListPolicies_FullMethodName = "/mainflux.users.policies.AuthService/ListPolicies" +) + // AuthServiceClient is the client API for AuthService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -40,7 +52,7 @@ func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient { func (c *authServiceClient) Authorize(ctx context.Context, in *AuthorizeReq, opts ...grpc.CallOption) (*AuthorizeRes, error) { out := new(AuthorizeRes) - err := c.cc.Invoke(ctx, "/mainflux.users.policies.AuthService/Authorize", in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_Authorize_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -49,7 +61,7 @@ func (c *authServiceClient) Authorize(ctx context.Context, in *AuthorizeReq, opt func (c *authServiceClient) Issue(ctx context.Context, in *IssueReq, opts ...grpc.CallOption) (*Token, error) { out := new(Token) - err := c.cc.Invoke(ctx, "/mainflux.users.policies.AuthService/Issue", in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_Issue_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -58,7 +70,7 @@ func (c *authServiceClient) Issue(ctx context.Context, in *IssueReq, opts ...grp func (c *authServiceClient) Identify(ctx context.Context, in *Token, opts ...grpc.CallOption) (*UserIdentity, error) { out := new(UserIdentity) - err := c.cc.Invoke(ctx, "/mainflux.users.policies.AuthService/Identify", in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_Identify_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -67,7 +79,7 @@ func (c *authServiceClient) Identify(ctx context.Context, in *Token, opts ...grp func (c *authServiceClient) AddPolicy(ctx context.Context, in *AddPolicyReq, opts ...grpc.CallOption) (*AddPolicyRes, error) { out := new(AddPolicyRes) - err := c.cc.Invoke(ctx, "/mainflux.users.policies.AuthService/AddPolicy", in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_AddPolicy_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -76,7 +88,7 @@ func (c *authServiceClient) AddPolicy(ctx context.Context, in *AddPolicyReq, opt func (c *authServiceClient) DeletePolicy(ctx context.Context, in *DeletePolicyReq, opts ...grpc.CallOption) (*DeletePolicyRes, error) { out := new(DeletePolicyRes) - err := c.cc.Invoke(ctx, "/mainflux.users.policies.AuthService/DeletePolicy", in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_DeletePolicy_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -85,7 +97,7 @@ func (c *authServiceClient) DeletePolicy(ctx context.Context, in *DeletePolicyRe func (c *authServiceClient) ListPolicies(ctx context.Context, in *ListPoliciesReq, opts ...grpc.CallOption) (*ListPoliciesRes, error) { out := new(ListPoliciesRes) - err := c.cc.Invoke(ctx, "/mainflux.users.policies.AuthService/ListPolicies", in, out, opts...) + err := c.cc.Invoke(ctx, AuthService_ListPolicies_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -150,7 +162,7 @@ func _AuthService_Authorize_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mainflux.users.policies.AuthService/Authorize", + FullMethod: AuthService_Authorize_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthServiceServer).Authorize(ctx, req.(*AuthorizeReq)) @@ -168,7 +180,7 @@ func _AuthService_Issue_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mainflux.users.policies.AuthService/Issue", + FullMethod: AuthService_Issue_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthServiceServer).Issue(ctx, req.(*IssueReq)) @@ -186,7 +198,7 @@ func _AuthService_Identify_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mainflux.users.policies.AuthService/Identify", + FullMethod: AuthService_Identify_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthServiceServer).Identify(ctx, req.(*Token)) @@ -204,7 +216,7 @@ func _AuthService_AddPolicy_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mainflux.users.policies.AuthService/AddPolicy", + FullMethod: AuthService_AddPolicy_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthServiceServer).AddPolicy(ctx, req.(*AddPolicyReq)) @@ -222,7 +234,7 @@ func _AuthService_DeletePolicy_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mainflux.users.policies.AuthService/DeletePolicy", + FullMethod: AuthService_DeletePolicy_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthServiceServer).DeletePolicy(ctx, req.(*DeletePolicyReq)) @@ -240,7 +252,7 @@ func _AuthService_ListPolicies_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/mainflux.users.policies.AuthService/ListPolicies", + FullMethod: AuthService_ListPolicies_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AuthServiceServer).ListPolicies(ctx, req.(*ListPoliciesReq))