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/tls"
"crypto/x509/pkix" "crypto/x509/pkix"
"fmt" "fmt"
"github.com/1f349/violet/utils"
"github.com/MrMelon54/certgen" "github.com/MrMelon54/certgen"
"github.com/MrMelon54/rescheduler" "github.com/MrMelon54/rescheduler"
"github.com/MrMelon54/violet/utils"
"io/fs" "io/fs"
"log" "log"
"math/big" "math/big"

View File

@ -6,17 +6,17 @@ import (
"encoding/json" "encoding/json"
"flag" "flag"
"fmt" "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/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" "github.com/google/subcommands"
"io/fs" "io/fs"
"log" "log"

View File

@ -6,11 +6,11 @@ import (
"encoding/json" "encoding/json"
"flag" "flag"
"fmt" "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/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" "github.com/google/subcommands"
"log" "log"
"net" "net"

View File

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

2
go.mod
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,11 +2,11 @@ package conf
import ( import (
"database/sql" "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" "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. // Conf stores the shared configuration for the API, HTTP and HTTPS servers.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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