This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/cmds"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/cmds"
|
||||
"github.com/gin-gonic/gin"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module git.itzana.me/strafesnet/dev-portal
|
||||
module git.itzana.me/StrafesNET/dev-service
|
||||
|
||||
go 1.24.0
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package dto
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package dto
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
)
|
||||
|
||||
type UserInfo struct {
|
||||
|
||||
@@ -3,8 +3,8 @@ package handlers
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/api/dto"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/api/dto"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"github.com/gin-gonic/gin"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net/http"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/api/dto"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/api/dto"
|
||||
"github.com/gin-gonic/gin"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net/http"
|
||||
|
||||
@@ -2,9 +2,9 @@ package handlers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/authz"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/authz"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/api/dto"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/api/dto"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/authz"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/authz"
|
||||
"github.com/gin-gonic/gin"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"net/http"
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/api/handlers"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/api/middleware"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/authz"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/web"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/api/handlers"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/api/middleware"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/authz"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/web"
|
||||
"github.com/gin-gonic/gin"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package authz
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"git.itzana.me/strafesnet/go-grpc/auth"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package authz
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
)
|
||||
|
||||
// Role constants for role types
|
||||
|
||||
@@ -2,7 +2,7 @@ package authz
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/go-grpc/auth"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ package authz
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"git.itzana.me/strafesnet/go-grpc/auth"
|
||||
"google.golang.org/protobuf/types/known/emptypb"
|
||||
)
|
||||
|
||||
2
pkg/cache/cache.go
vendored
2
pkg/cache/cache.go
vendored
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/redis/go-redis/v9"
|
||||
"time"
|
||||
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
)
|
||||
|
||||
// Cache is a simple caching interface for Redis
|
||||
|
||||
@@ -2,10 +2,10 @@ package cmds
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/cache"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore/gormstore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/ratelimit"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/rpc"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/cache"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore/gormstore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/ratelimit"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/rpc"
|
||||
"git.itzana.me/strafesnet/go-grpc/dev"
|
||||
"github.com/redis/go-redis/v9"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package cmds
|
||||
|
||||
import (
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/api"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/authz"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore/gormstore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/api"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/authz"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore/gormstore"
|
||||
"git.itzana.me/strafesnet/go-grpc/auth"
|
||||
"github.com/urfave/cli/v2"
|
||||
"google.golang.org/grpc"
|
||||
|
||||
@@ -3,7 +3,7 @@ package datastore
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
)
|
||||
|
||||
var ErrNotExists = errors.New("resource does not exist")
|
||||
|
||||
@@ -3,8 +3,8 @@ package gormstore
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ package gormstore
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ package gormstore
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"git.itzana.me/strafesnet/utils/logger"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
@@ -3,8 +3,8 @@ package gormstore
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ package gormstore
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ package gormstore
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ package gormstore
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package datastore
|
||||
|
||||
import "git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
import "git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
|
||||
// GetDefaultPermissionDefinitions returns the predefined permission configurations
|
||||
func GetDefaultPermissionDefinitions() []model.Permission {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package datastore
|
||||
|
||||
import "git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
import "git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
|
||||
// Default rate limit IDs
|
||||
const (
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/cache"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/datastore"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/model"
|
||||
"git.itzana.me/strafesnet/dev-portal/pkg/ratelimit"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/cache"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/datastore"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/model"
|
||||
"git.itzana.me/StrafesNET/dev-service/pkg/ratelimit"
|
||||
"git.itzana.me/strafesnet/go-grpc/dev"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user