change module path from github.com/omixlab to omixlab.com
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BuildCmd returns the build command
|
// BuildCmd returns the build command
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// InitCmd returns the init command
|
// InitCmd returns the init command
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// KeysCmd returns the keys command
|
// KeysCmd returns the keys command
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PublishCmd returns the publish command
|
// PublishCmd returns the publish command
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RunCmd returns the run command
|
// RunCmd returns the run command
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SignCmd returns the sign command
|
// SignCmd returns the sign command
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatusCmd returns the status command
|
// StatusCmd returns the status command
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidateCmd returns the validate command
|
// ValidateCmd returns the validate command
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/cmd/mosis/cmd"
|
"omixlab.com/mosis-portal/cmd/mosis/cmd"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/internal/api"
|
"omixlab.com/mosis-portal/internal/api"
|
||||||
"github.com/omixlab/mosis-portal/internal/config"
|
"omixlab.com/mosis-portal/internal/config"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module github.com/omixlab/mosis-portal
|
module omixlab.com/mosis-portal
|
||||||
|
|
||||||
go 1.22
|
go 1.22
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
"github.com/omixlab/mosis-portal/internal/review"
|
"omixlab.com/mosis-portal/internal/review"
|
||||||
"github.com/omixlab/mosis-portal/internal/storage"
|
"omixlab.com/mosis-portal/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AdminHandler handles admin operations
|
// AdminHandler handles admin operations
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/omixlab/mosis-portal/internal/api/middleware"
|
"omixlab.com/mosis-portal/internal/api/middleware"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
"github.com/omixlab/mosis-portal/internal/storage"
|
"omixlab.com/mosis-portal/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AppHandler handles app-related endpoints
|
// AppHandler handles app-related endpoints
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/internal/api/middleware"
|
"omixlab.com/mosis-portal/internal/api/middleware"
|
||||||
"github.com/omixlab/mosis-portal/internal/auth"
|
"omixlab.com/mosis-portal/internal/auth"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthHandler handles authentication endpoints
|
// AuthHandler handles authentication endpoints
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
"github.com/omixlab/mosis-portal/internal/storage"
|
"omixlab.com/mosis-portal/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StoreHandler handles public store endpoints
|
// StoreHandler handles public store endpoints
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
"github.com/omixlab/mosis-portal/internal/telemetry"
|
"omixlab.com/mosis-portal/internal/telemetry"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TelemetryHandler handles telemetry API requests
|
// TelemetryHandler handles telemetry API requests
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/internal/auth"
|
"omixlab.com/mosis-portal/internal/auth"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
)
|
)
|
||||||
|
|
||||||
type contextKey string
|
type contextKey string
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ import (
|
|||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
chimw "github.com/go-chi/chi/v5/middleware"
|
chimw "github.com/go-chi/chi/v5/middleware"
|
||||||
"github.com/omixlab/mosis-portal/internal/api/handlers"
|
"omixlab.com/mosis-portal/internal/api/handlers"
|
||||||
"github.com/omixlab/mosis-portal/internal/api/middleware"
|
"omixlab.com/mosis-portal/internal/api/middleware"
|
||||||
"github.com/omixlab/mosis-portal/internal/auth"
|
"omixlab.com/mosis-portal/internal/auth"
|
||||||
"github.com/omixlab/mosis-portal/internal/config"
|
"omixlab.com/mosis-portal/internal/config"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
"github.com/omixlab/mosis-portal/internal/storage"
|
"omixlab.com/mosis-portal/internal/storage"
|
||||||
"github.com/omixlab/mosis-portal/internal/telemetry"
|
"omixlab.com/mosis-portal/internal/telemetry"
|
||||||
"github.com/omixlab/mosis-portal/internal/web"
|
"omixlab.com/mosis-portal/internal/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewRouter creates and configures the HTTP router
|
// NewRouter creates and configures the HTTP router
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
"github.com/omixlab/mosis-portal/pkg/mospkg"
|
"omixlab.com/mosis-portal/pkg/mospkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ReviewFlag represents a security or quality flag
|
// ReviewFlag represents a security or quality flag
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
"github.com/omixlab/mosis-portal/internal/review"
|
"omixlab.com/mosis-portal/internal/review"
|
||||||
"github.com/omixlab/mosis-portal/internal/storage"
|
"omixlab.com/mosis-portal/internal/storage"
|
||||||
"github.com/omixlab/mosis-portal/internal/telemetry"
|
"omixlab.com/mosis-portal/internal/telemetry"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Handler handles web page requests
|
// Handler handles web page requests
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/gob"
|
"encoding/gob"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/omixlab/mosis-portal/internal/database"
|
"omixlab.com/mosis-portal/internal/database"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user