mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-08 05:52:10 +07:00
Avoid naming module using a domain name pattern
I hope it will be less discoverable by other users and less likely to be used unintentionally in other projects.
This commit is contained in:
parent
d95530c595
commit
5496692c5d
14 changed files with 22 additions and 33 deletions
|
@ -6,9 +6,8 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/repo"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"golang.org/x/term"
|
||||
|
|
|
@ -4,8 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
|
@ -11,9 +11,8 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/config"
|
||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
||||
"xmr-remote-nodes/internal/config"
|
||||
"xmr-remote-nodes/internal/repo"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"golang.org/x/net/proxy"
|
||||
|
|
|
@ -2,8 +2,7 @@ package cmd
|
|||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/config"
|
||||
"xmr-remote-nodes/internal/config"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
11
cmd/serve.go
11
cmd/serve.go
|
@ -5,12 +5,11 @@ import (
|
|||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/frontend"
|
||||
"github.com/ditatompel/xmr-nodes/handler"
|
||||
"github.com/ditatompel/xmr-nodes/internal/config"
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
||||
"xmr-remote-nodes/frontend"
|
||||
"xmr-remote-nodes/handler"
|
||||
"xmr-remote-nodes/internal/config"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/repo"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/cors"
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/ditatompel/xmr-nodes
|
||||
module xmr-remote-nodes
|
||||
|
||||
go 1.22.2
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package handler
|
||||
|
||||
import (
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/repo"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
|
|
@ -4,9 +4,8 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/repo"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
|
|
@ -2,8 +2,7 @@ package database
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/config"
|
||||
"xmr-remote-nodes/internal/config"
|
||||
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
|
|
|
@ -5,8 +5,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
|
||||
"github.com/alexedwards/argon2id"
|
||||
)
|
||||
|
|
|
@ -6,8 +6,7 @@ import (
|
|||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
)
|
||||
|
||||
type CronRepository interface {
|
||||
|
|
|
@ -10,8 +10,7 @@ import (
|
|||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
|
||||
"github.com/jmoiron/sqlx/types"
|
||||
)
|
||||
|
|
|
@ -4,8 +4,7 @@ import (
|
|||
"fmt"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
||||
"xmr-remote-nodes/internal/database"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
|
2
main.go
2
main.go
|
@ -1,6 +1,6 @@
|
|||
package main
|
||||
|
||||
import "github.com/ditatompel/xmr-nodes/cmd"
|
||||
import "xmr-remote-nodes/cmd"
|
||||
|
||||
func main() {
|
||||
cmd.Execute()
|
||||
|
|
Loading…
Reference in a new issue