🚚 Move namespace

This commit is contained in:
LittleSheep 2024-09-29 23:03:11 +08:00
parent e158cb8819
commit 232ded4cd4
21 changed files with 35 additions and 35 deletions

View File

@ -4,7 +4,7 @@
"type": "go",
"name": "Run RoadSign",
"goExecPath": "/opt/homebrew/bin/go",
"buildParams": ["code.smartsheep.studio/goatworks/roadsign/pkg/cmd/server"],
"buildParams": ["git.solsynth.dev/goatworks/roadsign/pkg/cmd/server"],
},
]
}

View File

@ -63,7 +63,7 @@ After that, you can manage your roadsign instance with RoadSign CLI aka. RDC.
To install it, run this command. (Make sure you have golang toolchain on your computer)
```shell
go install code.smartsheep.studio/goatworks/roadsign/pkg/cmd/rdc@latest
go install git.solsynth.dev/goatworks/roadsign/pkg/cmd/rdc@latest
```
## Usage

2
go.mod
View File

@ -1,4 +1,4 @@
module code.smartsheep.studio/goatworks/roadsign
module git.solsynth.dev/goatworks/roadsign
go 1.21.4

View File

@ -5,7 +5,7 @@ import (
"fmt"
"strings"
roadsign "code.smartsheep.studio/goatworks/roadsign/pkg"
roadsign "git.solsynth.dev/goatworks/roadsign/pkg"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
)

View File

@ -8,7 +8,7 @@ import (
jsoniter "github.com/json-iterator/go"
"code.smartsheep.studio/goatworks/roadsign/pkg/cmd/rdc/conn"
"git.solsynth.dev/goatworks/roadsign/pkg/cmd/rdc/conn"
"github.com/gofiber/fiber/v2"
"github.com/rs/zerolog/log"
"github.com/urfave/cli/v2"

View File

@ -3,9 +3,9 @@ package main
import (
"os"
roadsign "code.smartsheep.studio/goatworks/roadsign/pkg"
"code.smartsheep.studio/goatworks/roadsign/pkg/cmd/rdc/conn"
"code.smartsheep.studio/goatworks/roadsign/pkg/cmd/rdc/deploy"
roadsign "git.solsynth.dev/goatworks/roadsign/pkg"
"git.solsynth.dev/goatworks/roadsign/pkg/cmd/rdc/conn"
"git.solsynth.dev/goatworks/roadsign/pkg/cmd/rdc/deploy"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/viper"

View File

@ -6,10 +6,10 @@ import (
"strings"
"syscall"
roadsign "code.smartsheep.studio/goatworks/roadsign/pkg"
"code.smartsheep.studio/goatworks/roadsign/pkg/hypertext"
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"code.smartsheep.studio/goatworks/roadsign/pkg/sideload"
roadsign "git.solsynth.dev/goatworks/roadsign/pkg"
"git.solsynth.dev/goatworks/roadsign/pkg/hypertext"
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"git.solsynth.dev/goatworks/roadsign/pkg/sideload"
"github.com/google/uuid"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

View File

@ -6,7 +6,7 @@ import (
"github.com/spf13/viper"
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"github.com/gofiber/fiber/v2"
"github.com/samber/lo"
)

View File

@ -1,8 +1,8 @@
package hypertext
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/hypertext/status"
"crypto/tls"
"git.solsynth.dev/goatworks/roadsign/pkg/hypertext/status"
jsoniter "github.com/json-iterator/go"
"net"
"net/http"

View File

@ -1,9 +1,9 @@
package status
import (
roadsign "code.smartsheep.studio/goatworks/roadsign/pkg"
"errors"
"fmt"
roadsign "git.solsynth.dev/goatworks/roadsign/pkg"
"github.com/gofiber/fiber/v2"
"github.com/spf13/viper"
)

View File

@ -1,9 +1,9 @@
package navi
import (
roadsign "code.smartsheep.studio/goatworks/roadsign/pkg"
"code.smartsheep.studio/goatworks/roadsign/pkg/navi/transformers"
"fmt"
roadsign "git.solsynth.dev/goatworks/roadsign/pkg"
"git.solsynth.dev/goatworks/roadsign/pkg/navi/transformers"
"github.com/spf13/viper"
"github.com/gofiber/fiber/v2"

View File

@ -5,8 +5,8 @@ import (
"net/url"
"strings"
"code.smartsheep.studio/goatworks/roadsign/pkg/navi/transformers"
"code.smartsheep.studio/goatworks/roadsign/pkg/warden"
"git.solsynth.dev/goatworks/roadsign/pkg/navi/transformers"
"git.solsynth.dev/goatworks/roadsign/pkg/warden"
"github.com/gofiber/fiber/v2"
"github.com/samber/lo"
)

View File

@ -1,6 +1,6 @@
package navi
import "code.smartsheep.studio/goatworks/roadsign/pkg/warden"
import "git.solsynth.dev/goatworks/roadsign/pkg/warden"
func InitializeWarden(regions []*Region) {
pool := make([]*warden.AppInstance, 0)

View File

@ -1,8 +1,8 @@
package sideload
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"code.smartsheep.studio/goatworks/roadsign/pkg/warden"
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"git.solsynth.dev/goatworks/roadsign/pkg/warden"
"github.com/gofiber/fiber/v2"
"github.com/samber/lo"
)

View File

@ -1,7 +1,7 @@
package sideload
import (
roadsign "code.smartsheep.studio/goatworks/roadsign/pkg"
roadsign "git.solsynth.dev/goatworks/roadsign/pkg"
"github.com/gofiber/fiber/v2"
)

View File

@ -1,7 +1,7 @@
package sideload
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"github.com/gofiber/fiber/v2"
)

View File

@ -1,12 +1,12 @@
package sideload
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/warden"
"context"
"git.solsynth.dev/goatworks/roadsign/pkg/warden"
"os"
"path/filepath"
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"github.com/gofiber/fiber/v2"
"github.com/google/uuid"
"github.com/samber/lo"

View File

@ -5,8 +5,8 @@ import (
"os"
"path/filepath"
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"code.smartsheep.studio/goatworks/roadsign/pkg/warden"
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"git.solsynth.dev/goatworks/roadsign/pkg/warden"
"github.com/gofiber/fiber/v2"
"github.com/pelletier/go-toml/v2"
"github.com/samber/lo"

View File

@ -1,7 +1,7 @@
package sideload
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"github.com/gofiber/fiber/v2"
"github.com/spf13/viper"
)

View File

@ -1,13 +1,13 @@
package sideload
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/sideload/view"
"fmt"
"git.solsynth.dev/goatworks/roadsign/pkg/sideload/view"
"github.com/gofiber/fiber/v2/middleware/filesystem"
jsoniter "github.com/json-iterator/go"
"net/http"
roadsign "code.smartsheep.studio/goatworks/roadsign/pkg"
roadsign "git.solsynth.dev/goatworks/roadsign/pkg"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/basicauth"
"github.com/gofiber/fiber/v2/middleware/logger"

View File

@ -1,8 +1,8 @@
package sideload
import (
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
"code.smartsheep.studio/goatworks/roadsign/pkg/warden"
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"git.solsynth.dev/goatworks/roadsign/pkg/warden"
"github.com/gofiber/fiber/v2"
"github.com/samber/lo"
)