mirror of
https://github.com/1f349/violet.git
synced 2024-11-09 22:22:50 +00:00
Rename module
This commit is contained in:
parent
dfdc2b2c11
commit
1ca5a6205b
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/MrMelon54/violet
|
module github.com/1f349/violet
|
||||||
|
|
||||||
go 1.20
|
go 1.20
|
||||||
|
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
|
@ -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.
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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.
|
||||||
|
@ -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{}
|
||||||
|
Loading…
Reference in New Issue
Block a user