Change Go module path to git.workaround.org
- Update module path from github.com/imc/backend to git.workaround.org/chaas/imc/backend - Update git remote to use git.workaround.org
This commit is contained in:
parent
061126c51e
commit
270cee44ff
12 changed files with 21 additions and 21 deletions
|
|
@ -11,11 +11,11 @@ import (
|
||||||
"os" // OS-level operations like reading command-line args
|
"os" // OS-level operations like reading command-line args
|
||||||
"strings" // string manipulation utilities
|
"strings" // string manipulation utilities
|
||||||
|
|
||||||
"github.com/gin-gonic/gin" // web framework
|
"git.workaround.org/chaas/imc/backend/internal/api" // HTTP API routing and handlers
|
||||||
"github.com/imc/backend/internal/api" // HTTP API routing and handlers
|
"git.workaround.org/chaas/imc/backend/internal/auth" // password hashing
|
||||||
"github.com/imc/backend/internal/auth" // password hashing
|
"git.workaround.org/chaas/imc/backend/internal/config" // configuration loading
|
||||||
"github.com/imc/backend/internal/config" // configuration loading
|
"git.workaround.org/chaas/imc/backend/internal/db" // database connection and operations
|
||||||
"github.com/imc/backend/internal/db" // database connection and operations
|
"github.com/gin-gonic/gin" // web framework
|
||||||
)
|
)
|
||||||
|
|
||||||
// main is the entry point of the application.
|
// main is the entry point of the application.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/imc/backend
|
module git.workaround.org/chaas/imc/backend
|
||||||
|
|
||||||
go 1.25.0
|
go 1.25.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/db"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/db"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type AliasHandler struct {
|
type AliasHandler struct {
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/auth"
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/db"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/auth"
|
|
||||||
"github.com/imc/backend/internal/db"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const MaxLoginAttempts = 5
|
const MaxLoginAttempts = 5
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/db"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/db"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type DomainHandler struct {
|
type DomainHandler struct {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/mail"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/mail"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type LogsHandler struct{}
|
type LogsHandler struct{}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/auth"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/auth"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthContextKey is the key used to store auth context in gin.Context.
|
// AuthContextKey is the key used to store auth context in gin.Context.
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/mail"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/mail"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type QueueHandler struct{}
|
type QueueHandler struct{}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package handlers
|
package handlers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/db"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/db"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type StatsHandler struct {
|
type StatsHandler struct {
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/db"
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/mail"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/db"
|
|
||||||
"github.com/imc/backend/internal/mail"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type UserHandler struct {
|
type UserHandler struct {
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@ package api
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/api/handlers"
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/auth"
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/config"
|
||||||
|
"git.workaround.org/chaas/imc/backend/internal/db"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/imc/backend/internal/api/handlers"
|
|
||||||
"github.com/imc/backend/internal/auth"
|
|
||||||
"github.com/imc/backend/internal/config"
|
|
||||||
"github.com/imc/backend/internal/db"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Router struct {
|
type Router struct {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import (
|
||||||
"gorm.io/gorm" // GORM ORM library
|
"gorm.io/gorm" // GORM ORM library
|
||||||
"gorm.io/gorm/logger" // GORM logger configuration
|
"gorm.io/gorm/logger" // GORM logger configuration
|
||||||
|
|
||||||
"github.com/imc/backend/internal/config" // configuration
|
"git.workaround.org/chaas/imc/backend/internal/config" // configuration
|
||||||
)
|
)
|
||||||
|
|
||||||
// DB wraps GORM's database connection with helper methods.
|
// DB wraps GORM's database connection with helper methods.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue