Rename module

This commit is contained in:
Melon 2023-07-22 01:11:47 +01:00
parent dfdc2b2c11
commit 1ca5a6205b
Signed by: melon
GPG Key ID: 6C9D970C50D26A25
24 changed files with 59 additions and 59 deletions

View File

@ -4,9 +4,9 @@ import (
"crypto/tls"
"crypto/x509/pkix"
"fmt"
"github.com/1f349/violet/utils"
"github.com/MrMelon54/certgen"
"github.com/MrMelon54/rescheduler"
"github.com/MrMelon54/violet/utils"
"io/fs"
"log"
"math/big"

View File

@ -6,17 +6,17 @@ import (
"encoding/json"
"flag"
"fmt"
"github.com/1f349/violet/certs"
"github.com/1f349/violet/domains"
errorPages "github.com/1f349/violet/error-pages"
"github.com/1f349/violet/favicons"
"github.com/1f349/violet/proxy"
"github.com/1f349/violet/router"
"github.com/1f349/violet/servers"
"github.com/1f349/violet/servers/api"
"github.com/1f349/violet/servers/conf"
"github.com/1f349/violet/utils"
"github.com/MrMelon54/mjwt"
"github.com/MrMelon54/violet/certs"
"github.com/MrMelon54/violet/domains"
errorPages "github.com/MrMelon54/violet/error-pages"
"github.com/MrMelon54/violet/favicons"
"github.com/MrMelon54/violet/proxy"
"github.com/MrMelon54/violet/router"
"github.com/MrMelon54/violet/servers"
"github.com/MrMelon54/violet/servers/api"
"github.com/MrMelon54/violet/servers/conf"
"github.com/MrMelon54/violet/utils"
"github.com/google/subcommands"
"io/fs"
"log"

View File

@ -6,11 +6,11 @@ import (
"encoding/json"
"flag"
"fmt"
"github.com/1f349/violet/domains"
"github.com/1f349/violet/proxy"
"github.com/1f349/violet/router"
"github.com/1f349/violet/target"
"github.com/AlecAivazis/survey/v2"
"github.com/MrMelon54/violet/domains"
"github.com/MrMelon54/violet/proxy"
"github.com/MrMelon54/violet/router"
"github.com/MrMelon54/violet/target"
"github.com/google/subcommands"
"log"
"net"

View File

@ -3,8 +3,8 @@ package domains
import (
"database/sql"
_ "embed"
"github.com/1f349/violet/utils"
"github.com/MrMelon54/rescheduler"
"github.com/MrMelon54/violet/utils"
"log"
"strings"
"sync"

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/MrMelon54/violet
module github.com/1f349/violet
go 1.20

View File

@ -3,9 +3,9 @@ package router
import (
"database/sql"
_ "embed"
"github.com/1f349/violet/proxy"
"github.com/1f349/violet/target"
"github.com/MrMelon54/rescheduler"
"github.com/MrMelon54/violet/proxy"
"github.com/MrMelon54/violet/target"
"log"
"net/http"
"sync"

View File

@ -2,8 +2,8 @@ package router
import (
"database/sql"
"github.com/MrMelon54/violet/proxy"
"github.com/MrMelon54/violet/target"
"github.com/1f349/violet/proxy"
"github.com/1f349/violet/target"
_ "github.com/mattn/go-sqlite3"
"github.com/stretchr/testify/assert"
"net/http"

View File

@ -2,10 +2,10 @@ package router
import (
"fmt"
"github.com/1f349/violet/proxy"
"github.com/1f349/violet/target"
"github.com/1f349/violet/utils"
"github.com/MrMelon54/trie"
"github.com/MrMelon54/violet/proxy"
"github.com/MrMelon54/violet/target"
"github.com/MrMelon54/violet/utils"
"net/http"
"strings"
)

View File

@ -1,8 +1,8 @@
package router
import (
"github.com/MrMelon54/violet/proxy"
"github.com/MrMelon54/violet/target"
"github.com/1f349/violet/proxy"
"github.com/1f349/violet/target"
"net/http"
"net/http/httptest"
"net/url"

View File

@ -2,10 +2,10 @@ package api
import (
"encoding/json"
"github.com/1f349/violet/servers/conf"
"github.com/1f349/violet/utils"
"github.com/MrMelon54/mjwt"
"github.com/MrMelon54/mjwt/claims"
"github.com/MrMelon54/violet/servers/conf"
"github.com/MrMelon54/violet/utils"
"github.com/julienschmidt/httprouter"
"net/http"
"time"

View File

@ -1,9 +1,9 @@
package api
import (
"github.com/MrMelon54/violet/servers/conf"
"github.com/MrMelon54/violet/utils"
"github.com/MrMelon54/violet/utils/fake"
"github.com/1f349/violet/servers/conf"
"github.com/1f349/violet/utils"
"github.com/1f349/violet/utils/fake"
"github.com/stretchr/testify/assert"
"net/http"
"net/http/httptest"

View File

@ -1,9 +1,9 @@
package api
import (
"github.com/1f349/violet/utils"
"github.com/MrMelon54/mjwt"
"github.com/MrMelon54/mjwt/auth"
"github.com/MrMelon54/violet/utils"
"github.com/julienschmidt/httprouter"
"net/http"
)

View File

@ -1,7 +1,7 @@
package api
import (
"github.com/MrMelon54/violet/target"
"github.com/1f349/violet/target"
)
type sourceJson struct {

View File

@ -2,10 +2,10 @@ package api
import (
"encoding/json"
"github.com/1f349/violet/router"
"github.com/1f349/violet/target"
"github.com/1f349/violet/utils"
"github.com/MrMelon54/mjwt"
"github.com/MrMelon54/violet/router"
"github.com/MrMelon54/violet/target"
"github.com/MrMelon54/violet/utils"
"github.com/julienschmidt/httprouter"
"log"
"net/http"

View File

@ -2,11 +2,11 @@ package conf
import (
"database/sql"
errorPages "github.com/1f349/violet/error-pages"
"github.com/1f349/violet/favicons"
"github.com/1f349/violet/router"
"github.com/1f349/violet/utils"
"github.com/MrMelon54/mjwt"
errorPages "github.com/MrMelon54/violet/error-pages"
"github.com/MrMelon54/violet/favicons"
"github.com/MrMelon54/violet/router"
"github.com/MrMelon54/violet/utils"
)
// Conf stores the shared configuration for the API, HTTP and HTTPS servers.

View File

@ -2,8 +2,8 @@ package servers
import (
"fmt"
"github.com/MrMelon54/violet/servers/conf"
"github.com/MrMelon54/violet/utils"
"github.com/1f349/violet/servers/conf"
"github.com/1f349/violet/utils"
"github.com/julienschmidt/httprouter"
"net/http"
"net/url"

View File

@ -2,9 +2,9 @@ package servers
import (
"bytes"
"github.com/MrMelon54/violet/servers/conf"
"github.com/MrMelon54/violet/utils"
"github.com/MrMelon54/violet/utils/fake"
"github.com/1f349/violet/servers/conf"
"github.com/1f349/violet/utils"
"github.com/1f349/violet/utils/fake"
"github.com/stretchr/testify/assert"
"io"
"net/http"

View File

@ -3,9 +3,9 @@ package servers
import (
"crypto/tls"
"fmt"
"github.com/MrMelon54/violet/favicons"
"github.com/MrMelon54/violet/servers/conf"
"github.com/MrMelon54/violet/utils"
"github.com/1f349/violet/favicons"
"github.com/1f349/violet/servers/conf"
"github.com/1f349/violet/utils"
"github.com/sethvargo/go-limiter/httplimit"
"github.com/sethvargo/go-limiter/memorystore"
"log"

View File

@ -2,11 +2,11 @@ package servers
import (
"database/sql"
"github.com/MrMelon54/violet/certs"
"github.com/MrMelon54/violet/proxy"
"github.com/MrMelon54/violet/router"
"github.com/MrMelon54/violet/servers/conf"
"github.com/MrMelon54/violet/utils/fake"
"github.com/1f349/violet/certs"
"github.com/1f349/violet/proxy"
"github.com/1f349/violet/router"
"github.com/1f349/violet/servers/conf"
"github.com/1f349/violet/utils/fake"
_ "github.com/mattn/go-sqlite3"
"github.com/stretchr/testify/assert"
"net/http"

View File

@ -2,7 +2,7 @@ package target
import (
"fmt"
"github.com/MrMelon54/violet/utils"
"github.com/1f349/violet/utils"
"net/http"
"net/url"
"path"

View File

@ -3,8 +3,8 @@ package target
import (
"context"
"fmt"
"github.com/MrMelon54/violet/proxy"
"github.com/MrMelon54/violet/utils"
"github.com/1f349/violet/proxy"
"github.com/1f349/violet/utils"
"github.com/rs/cors"
"golang.org/x/net/http/httpguts"
"io"

View File

@ -2,7 +2,7 @@ package target
import (
"bytes"
"github.com/MrMelon54/violet/proxy"
"github.com/1f349/violet/proxy"
"github.com/stretchr/testify/assert"
"io"
"net/http"

View File

@ -1,6 +1,6 @@
package fake
import "github.com/MrMelon54/violet/utils"
import "github.com/1f349/violet/utils"
// Compilable implements utils.Compilable and stores if the Compile function
// is called.

View File

@ -1,6 +1,6 @@
package fake
import "github.com/MrMelon54/violet/utils"
import "github.com/1f349/violet/utils"
// Domains implements DomainProvider and makes sure `example.com` is valid
type Domains struct{}