Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bearer access token #118

Merged
merged 10 commits into from
Mar 8, 2024
Next Next commit
Bump gz-go version to v10
  • Loading branch information
marcoshuck committed Feb 21, 2024
commit e50fb968ebe186b864575144801d5f1ab0d7cde6
2 changes: 1 addition & 1 deletion encoders/marshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"io"

"github.com/gazebo-web/gz-go/v9/telemetry"
"github.com/gazebo-web/gz-go/v10/telemetry"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"go.opentelemetry.io/otel/codes"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/authentication/http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/gazebo-web/auth/pkg/authentication"
"github.com/gazebo-web/gz-go/v9/middleware"
"github.com/gazebo-web/gz-go/v10/middleware"
"github.com/rs/cors"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/gazebo-web/gz-go/v9
module github.com/gazebo-web/gz-go/v10

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion mailing/sendgrid_builder.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package mailing

import (
"github.com/gazebo-web/gz-go/v9/structs"
"github.com/gazebo-web/gz-go/v10/structs"
"github.com/sendgrid/sendgrid-go/helpers/mail"
)

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"
"time"

"github.com/gazebo-web/gz-go/v9/monitoring"
"github.com/gazebo-web/gz-go/v10/monitoring"
"github.com/gorilla/mux"
"github.com/rollbar/rollbar-go"
"gorm.io/driver/mysql"
Expand Down
2 changes: 1 addition & 1 deletion monitoring/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/gazebo-web/gz-go/v9/monitoring"
"github.com/gazebo-web/gz-go/v10/monitoring"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand Down
4 changes: 2 additions & 2 deletions monitoring_prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http/httptest"
"testing"

"github.com/gazebo-web/gz-go/v9/monitoring"
"github.com/gazebo-web/gz-go/v9/monitoring/prometheus"
"github.com/gazebo-web/gz-go/v10/monitoring"
"github.com/gazebo-web/gz-go/v10/monitoring/prometheus"
"github.com/gorilla/mux"
"github.com/stretchr/testify/suite"
"gorm.io/gorm"
Expand Down
2 changes: 1 addition & 1 deletion net/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"reflect"

"github.com/gazebo-web/gz-go/v9/encoders"
"github.com/gazebo-web/gz-go/v10/encoders"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion net/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/gazebo-web/gz-go/v9/encoders"
"github.com/gazebo-web/gz-go/v10/encoders"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions net/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"time"

"github.com/gazebo-web/gz-go/v9/encoders"
"github.com/gazebo-web/gz-go/v9/telemetry"
"github.com/gazebo-web/gz-go/v10/encoders"
"github.com/gazebo-web/gz-go/v10/telemetry"
"go.opentelemetry.io/otel/codes"
)

Expand Down
6 changes: 3 additions & 3 deletions repository/firestore/firestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"

"cloud.google.com/go/firestore"
"github.com/gazebo-web/gz-go/v9/errors"
"github.com/gazebo-web/gz-go/v9/reflect"
"github.com/gazebo-web/gz-go/v9/repository"
"github.com/gazebo-web/gz-go/v10/errors"
"github.com/gazebo-web/gz-go/v10/reflect"
"github.com/gazebo-web/gz-go/v10/repository"
"google.golang.org/api/iterator"
)

Expand Down
4 changes: 2 additions & 2 deletions repository/firestore/firestore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"cloud.google.com/go/firestore"
firebase "firebase.google.com/go/v4"
"github.com/gazebo-web/gz-go/v9/errors"
"github.com/gazebo-web/gz-go/v9/repository"
"github.com/gazebo-web/gz-go/v10/errors"
"github.com/gazebo-web/gz-go/v10/repository"
"github.com/stretchr/testify/suite"
)

Expand Down
4 changes: 2 additions & 2 deletions repository/firestore/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"

"cloud.google.com/go/firestore"
"github.com/gazebo-web/gz-go/v9/pagination"
"github.com/gazebo-web/gz-go/v9/repository"
"github.com/gazebo-web/gz-go/v10/pagination"
"github.com/gazebo-web/gz-go/v10/repository"
)

// Option is a Firestore-specific repository.Option implementation.
Expand Down
2 changes: 1 addition & 1 deletion repository/firestore/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package firestore
import (
"testing"

"github.com/gazebo-web/gz-go/v9/repository"
"github.com/gazebo-web/gz-go/v10/repository"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion repository/sql/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/gazebo-web/gz-go/v9/repository"
"github.com/gazebo-web/gz-go/v10/repository"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions repository/sql/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"testing"

utilsgorm "github.com/gazebo-web/gz-go/v9/database/gorm"
"github.com/gazebo-web/gz-go/v9/repository"
utilsgorm "github.com/gazebo-web/gz-go/v10/database/gorm"
"github.com/gazebo-web/gz-go/v10/repository"
"github.com/stretchr/testify/suite"
"gorm.io/gorm"
)
Expand Down
4 changes: 2 additions & 2 deletions repository/sql/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package sql
import (
"context"

"github.com/gazebo-web/gz-go/v9/reflect"
"github.com/gazebo-web/gz-go/v9/repository"
"github.com/gazebo-web/gz-go/v10/reflect"
"github.com/gazebo-web/gz-go/v10/repository"
"gorm.io/gorm"
)

Expand Down
4 changes: 2 additions & 2 deletions repository/sql/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

utilsgorm "github.com/gazebo-web/gz-go/v9/database/gorm"
"github.com/gazebo-web/gz-go/v9/repository"
utilsgorm "github.com/gazebo-web/gz-go/v10/database/gorm"
"github.com/gazebo-web/gz-go/v10/repository"
"github.com/stretchr/testify/suite"
"gorm.io/gorm"
)
Expand Down
2 changes: 1 addition & 1 deletion router.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/codegangsta/negroni"
"github.com/gazebo-web/gz-go/v9/monitoring"
"github.com/gazebo-web/gz-go/v10/monitoring"
"github.com/gorilla/mux"
)

Expand Down
2 changes: 1 addition & 1 deletion utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"text/template"

"github.com/form3tech-oss/jwt-go"
gzerrors "github.com/gazebo-web/gz-go/v9/errors"
gzerrors "github.com/gazebo-web/gz-go/v10/errors"
)

// GetUserIdentity returns the user identity found in the http request's JWT
Expand Down
Loading