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"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
"xmr-remote-nodes/internal/repo"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"golang.org/x/term"
|
"golang.org/x/term"
|
||||||
|
|
|
@ -4,8 +4,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,9 +11,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
"xmr-remote-nodes/internal/config"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/config"
|
"xmr-remote-nodes/internal/repo"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"golang.org/x/net/proxy"
|
"golang.org/x/net/proxy"
|
||||||
|
|
|
@ -2,8 +2,7 @@ package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
"xmr-remote-nodes/internal/config"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/config"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
11
cmd/serve.go
11
cmd/serve.go
|
@ -5,12 +5,11 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
"xmr-remote-nodes/frontend"
|
||||||
"github.com/ditatompel/xmr-nodes/frontend"
|
"xmr-remote-nodes/handler"
|
||||||
"github.com/ditatompel/xmr-nodes/handler"
|
"xmr-remote-nodes/internal/config"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/config"
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
"xmr-remote-nodes/internal/repo"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/gofiber/fiber/v2/middleware/cors"
|
"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
|
go 1.22.2
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package handler
|
package handler
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
"xmr-remote-nodes/internal/repo"
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,9 +4,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
"xmr-remote-nodes/internal/repo"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/repo"
|
|
||||||
|
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,8 +2,7 @@ package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"xmr-remote-nodes/internal/config"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/config"
|
|
||||||
|
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
|
|
|
@ -5,8 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
|
||||||
|
|
||||||
"github.com/alexedwards/argon2id"
|
"github.com/alexedwards/argon2id"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,8 +6,7 @@ import (
|
||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type CronRepository interface {
|
type CronRepository interface {
|
||||||
|
|
|
@ -10,8 +10,7 @@ import (
|
||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
|
||||||
|
|
||||||
"github.com/jmoiron/sqlx/types"
|
"github.com/jmoiron/sqlx/types"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,8 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
|
"xmr-remote-nodes/internal/database"
|
||||||
"github.com/ditatompel/xmr-nodes/internal/database"
|
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
2
main.go
2
main.go
|
@ -1,6 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "github.com/ditatompel/xmr-nodes/cmd"
|
import "xmr-remote-nodes/cmd"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cmd.Execute()
|
cmd.Execute()
|
||||||
|
|
Loading…
Reference in a new issue