refactor(monitor/backend): rename module to monitor-the-situation/backend
This commit is contained in:
parent
e46728bd80
commit
a627161b33
|
|
@ -102,7 +102,7 @@ formatters:
|
|||
reformat-tags: true
|
||||
goimports:
|
||||
local-prefixes:
|
||||
- github.com/carterperez-dev/templates/go-backend
|
||||
- github.com/carterperez-dev/monitor-the-situation/backend
|
||||
gci:
|
||||
sections:
|
||||
- standard
|
||||
|
|
|
|||
|
|
@ -14,14 +14,14 @@ import (
|
|||
|
||||
"github.com/go-chi/chi/v5"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/admin"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/auth"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/config"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/health"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/middleware"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/server"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/user"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/admin"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/auth"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/config"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/health"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/middleware"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/server"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/user"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/carterperez-dev/templates/go-backend
|
||||
module github.com/carterperez-dev/monitor-the-situation/backend
|
||||
|
||||
go 1.25.0
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/go-chi/chi/v5"
|
||||
"github.com/redis/go-redis/v9"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
)
|
||||
|
||||
type AuthService interface {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import (
|
|||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-playground/validator/v10"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/middleware"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/middleware"
|
||||
)
|
||||
|
||||
type Handler struct {
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ import (
|
|||
"github.com/lestrrat-go/jwx/v3/jwk"
|
||||
"github.com/lestrrat-go/jwx/v3/jwt"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/config"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/middleware"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/config"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/middleware"
|
||||
)
|
||||
|
||||
type JWTManager struct {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
)
|
||||
|
||||
type Repository interface {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/google/uuid"
|
||||
"github.com/redis/go-redis/v9"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import (
|
|||
_ "github.com/jackc/pgx/v5/stdlib"
|
||||
"github.com/jmoiron/sqlx"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/config"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/config"
|
||||
)
|
||||
|
||||
type Database struct {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
"github.com/redis/go-redis/v9"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/config"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/config"
|
||||
)
|
||||
|
||||
type Redis struct {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import (
|
|||
"google.golang.org/grpc/credentials"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/config"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/config"
|
||||
)
|
||||
|
||||
type Telemetry struct {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/config"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/config"
|
||||
)
|
||||
|
||||
func SecurityHeaders(isProduction bool) func(http.Handler) http.Handler {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ import (
|
|||
"github.com/go-chi/chi/v5"
|
||||
chimw "github.com/go-chi/chi/v5/middleware"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/config"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/health"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/config"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/health"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ import (
|
|||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-playground/validator/v10"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/middleware"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/middleware"
|
||||
)
|
||||
|
||||
type Handler struct {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
|
||||
"github.com/jackc/pgx/v5/pgconn"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
)
|
||||
|
||||
type Repository interface {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import (
|
|||
|
||||
"github.com/google/uuid"
|
||||
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/auth"
|
||||
"github.com/carterperez-dev/templates/go-backend/internal/core"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/auth"
|
||||
"github.com/carterperez-dev/monitor-the-situation/backend/internal/core"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
|
|
|
|||
Loading…
Reference in New Issue