rename models to pkg (#2005)

This commit is contained in:
fatedier 2020-09-23 13:49:14 +08:00 committed by GitHub
parent 710ecf44f5
commit 3fbdea0f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
111 changed files with 196 additions and 196 deletions

View File

@ -28,11 +28,10 @@ test: gotest
gotest: gotest:
go test -v --cover ./assets/... go test -v --cover ./assets/...
go test -v --cover ./client/...
go test -v --cover ./cmd/... go test -v --cover ./cmd/...
go test -v --cover ./models/... go test -v --cover ./client/...
go test -v --cover ./server/... go test -v --cover ./server/...
go test -v --cover ./utils/... go test -v --cover ./pkg/...
ci: ci:
go test -count=1 -p=1 -v ./tests/... go test -count=1 -p=1 -v ./tests/...

View File

@ -21,7 +21,7 @@ import (
"time" "time"
"github.com/fatedier/frp/assets" "github.com/fatedier/frp/assets"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View File

@ -23,8 +23,8 @@ import (
"strings" "strings"
"github.com/fatedier/frp/client/proxy" "github.com/fatedier/frp/client/proxy"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/utils/log" "github.com/fatedier/frp/pkg/util/log"
) )
type GeneralResponse struct { type GeneralResponse struct {

View File

@ -25,12 +25,12 @@ import (
"time" "time"
"github.com/fatedier/frp/client/proxy" "github.com/fatedier/frp/client/proxy"
"github.com/fatedier/frp/models/auth" "github.com/fatedier/frp/pkg/auth"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/models/transport" "github.com/fatedier/frp/pkg/transport"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/golib/control/shutdown" "github.com/fatedier/golib/control/shutdown"
"github.com/fatedier/golib/crypto" "github.com/fatedier/golib/crypto"

View File

@ -3,7 +3,7 @@ package event
import ( import (
"errors" "errors"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
) )
type Type int type Type int

View File

@ -24,7 +24,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
) )
var ( var (

View File

@ -26,13 +26,13 @@ import (
"sync" "sync"
"time" "time"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
plugin "github.com/fatedier/frp/models/plugin/client" plugin "github.com/fatedier/frp/pkg/plugin/client"
"github.com/fatedier/frp/models/proto/udp" "github.com/fatedier/frp/pkg/proto/udp"
"github.com/fatedier/frp/utils/limit" "github.com/fatedier/frp/pkg/util/limit"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/golib/errors" "github.com/fatedier/golib/errors"
frpIo "github.com/fatedier/golib/io" frpIo "github.com/fatedier/golib/io"

View File

@ -7,9 +7,9 @@ import (
"sync" "sync"
"github.com/fatedier/frp/client/event" "github.com/fatedier/frp/client/event"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/golib/errors" "github.com/fatedier/golib/errors"
) )

View File

@ -10,9 +10,9 @@ import (
"github.com/fatedier/frp/client/event" "github.com/fatedier/frp/client/event"
"github.com/fatedier/frp/client/health" "github.com/fatedier/frp/client/health"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/golib/errors" "github.com/fatedier/golib/errors"
) )

View File

@ -18,7 +18,6 @@ import (
"context" "context"
"crypto/tls" "crypto/tls"
"fmt" "fmt"
"github.com/fatedier/frp/models/transport"
"io/ioutil" "io/ioutil"
"net" "net"
"runtime" "runtime"
@ -27,13 +26,14 @@ import (
"time" "time"
"github.com/fatedier/frp/assets" "github.com/fatedier/frp/assets"
"github.com/fatedier/frp/models/auth" "github.com/fatedier/frp/pkg/auth"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/utils/log" "github.com/fatedier/frp/pkg/transport"
frpNet "github.com/fatedier/frp/utils/net" "github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/utils/version" frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/version"
"github.com/fatedier/frp/pkg/util/xlog"
fmux "github.com/hashicorp/yamux" fmux "github.com/hashicorp/yamux"
) )

View File

@ -24,12 +24,12 @@ import (
"sync" "sync"
"time" "time"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/models/proto/udp" "github.com/fatedier/frp/pkg/proto/udp"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/fatedier/frp/utils/util" "github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/golib/errors" "github.com/fatedier/golib/errors"
frpIo "github.com/fatedier/golib/io" frpIo "github.com/fatedier/golib/io"

View File

@ -19,8 +19,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
) )
type VisitorManager struct { type VisitorManager struct {

View File

@ -19,10 +19,10 @@ import (
"os" "os"
"strings" "strings"
"github.com/spf13/cobra" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/models/config" "github.com/spf13/cobra"
"github.com/fatedier/frp/models/consts"
) )
func init() { func init() {

View File

@ -21,8 +21,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
) )
func init() { func init() {

View File

@ -22,9 +22,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/spf13/cobra" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/config" "github.com/spf13/cobra"
) )
func init() { func init() {

View File

@ -25,13 +25,13 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/spf13/cobra"
"github.com/fatedier/frp/client" "github.com/fatedier/frp/client"
"github.com/fatedier/frp/models/auth" "github.com/fatedier/frp/pkg/auth"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/utils/log" "github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/utils/version" "github.com/fatedier/frp/pkg/util/version"
"github.com/spf13/cobra"
) )
const ( const (

View File

@ -23,11 +23,11 @@ import (
"os" "os"
"strings" "strings"
"github.com/fatedier/frp/client"
"github.com/fatedier/frp/pkg/config"
"github.com/rodaine/table" "github.com/rodaine/table"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/fatedier/frp/client"
"github.com/fatedier/frp/models/config"
) )
func init() { func init() {

View File

@ -18,10 +18,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/spf13/cobra" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/models/config" "github.com/spf13/cobra"
"github.com/fatedier/frp/models/consts"
) )
func init() { func init() {

View File

@ -18,10 +18,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/spf13/cobra" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/models/config" "github.com/spf13/cobra"
"github.com/fatedier/frp/models/consts"
) )
func init() { func init() {

View File

@ -20,8 +20,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
) )
func init() { func init() {

View File

@ -21,8 +21,8 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
) )
func init() { func init() {

View File

@ -18,10 +18,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/spf13/cobra" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/models/config" "github.com/spf13/cobra"
"github.com/fatedier/frp/models/consts"
) )
func init() { func init() {

View File

@ -18,10 +18,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/spf13/cobra" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/models/config" "github.com/spf13/cobra"
"github.com/fatedier/frp/models/consts"
) )
func init() { func init() {

View File

@ -21,7 +21,7 @@ import (
"github.com/fatedier/golib/crypto" "github.com/fatedier/golib/crypto"
_ "github.com/fatedier/frp/assets/frps/statik" _ "github.com/fatedier/frp/assets/frps/statik"
_ "github.com/fatedier/frp/models/metrics" _ "github.com/fatedier/frp/pkg/metrics"
) )
func main() { func main() {

View File

@ -18,14 +18,14 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/spf13/cobra" "github.com/fatedier/frp/pkg/auth"
"github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/auth" "github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/frp/pkg/util/version"
"github.com/fatedier/frp/server" "github.com/fatedier/frp/server"
"github.com/fatedier/frp/utils/log"
"github.com/fatedier/frp/utils/util" "github.com/spf13/cobra"
"github.com/fatedier/frp/utils/version"
) )
const ( const (

View File

@ -17,8 +17,8 @@ package auth
import ( import (
"fmt" "fmt"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/vaughan0/go-ini" "github.com/vaughan0/go-ini"
) )

View File

@ -18,7 +18,7 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/coreos/go-oidc" "github.com/coreos/go-oidc"
"github.com/vaughan0/go-ini" "github.com/vaughan0/go-ini"

View File

@ -18,8 +18,8 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/utils/util" "github.com/fatedier/frp/pkg/util/util"
"github.com/vaughan0/go-ini" "github.com/vaughan0/go-ini"
) )

View File

@ -20,9 +20,9 @@ import (
"strconv" "strconv"
"strings" "strings"
ini "github.com/vaughan0/go-ini" "github.com/fatedier/frp/pkg/auth"
"github.com/fatedier/frp/models/auth" ini "github.com/vaughan0/go-ini"
) )
// ClientCommonConf contains information for a client service. It is // ClientCommonConf contains information for a client service. It is

View File

@ -20,9 +20,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/utils/util" "github.com/fatedier/frp/pkg/util/util"
ini "github.com/vaughan0/go-ini" ini "github.com/vaughan0/go-ini"
) )

View File

@ -19,11 +19,11 @@ import (
"strconv" "strconv"
"strings" "strings"
ini "github.com/vaughan0/go-ini" "github.com/fatedier/frp/pkg/auth"
plugin "github.com/fatedier/frp/pkg/plugin/server"
"github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/frp/models/auth" ini "github.com/vaughan0/go-ini"
plugin "github.com/fatedier/frp/models/plugin/server"
"github.com/fatedier/frp/utils/util"
) )
// ServerCommonConf contains information for a server service. It is // ServerCommonConf contains information for a server service. It is

View File

@ -19,7 +19,7 @@ import (
"reflect" "reflect"
"strconv" "strconv"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
ini "github.com/vaughan0/go-ini" ini "github.com/vaughan0/go-ini"
) )

View File

@ -15,8 +15,8 @@
package aggregate package aggregate
import ( import (
"github.com/fatedier/frp/models/metrics/mem" "github.com/fatedier/frp/pkg/metrics/mem"
"github.com/fatedier/frp/models/metrics/prometheus" "github.com/fatedier/frp/pkg/metrics/prometheus"
"github.com/fatedier/frp/server/metrics" "github.com/fatedier/frp/server/metrics"
) )

View File

@ -18,9 +18,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/pkg/util/metric"
server "github.com/fatedier/frp/server/metrics" server "github.com/fatedier/frp/server/metrics"
"github.com/fatedier/frp/utils/log"
"github.com/fatedier/frp/utils/metric"
) )
var sm *serverMetrics = newServerMetrics() var sm *serverMetrics = newServerMetrics()

View File

@ -17,7 +17,7 @@ package mem
import ( import (
"time" "time"
"github.com/fatedier/frp/utils/metric" "github.com/fatedier/frp/pkg/util/metric"
) )
const ( const (

View File

@ -1,7 +1,7 @@
package metrics package metrics
import ( import (
"github.com/fatedier/frp/models/metrics/aggregate" "github.com/fatedier/frp/pkg/metrics/aggregate"
) )
var EnableMem = aggregate.EnableMem var EnableMem = aggregate.EnableMem

View File

@ -7,9 +7,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/frp/utils/log" "github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/utils/util" "github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/golib/errors" "github.com/fatedier/golib/errors"
"github.com/fatedier/golib/pool" "github.com/fatedier/golib/pool"

View File

@ -23,7 +23,7 @@ import (
"net/http/httputil" "net/http/httputil"
"strings" "strings"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
) )
const PluginHTTP2HTTPS = "http2https" const PluginHTTP2HTTPS = "http2https"

View File

@ -22,7 +22,7 @@ import (
"net/http" "net/http"
"strings" "strings"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
frpIo "github.com/fatedier/golib/io" frpIo "github.com/fatedier/golib/io"
gnet "github.com/fatedier/golib/net" gnet "github.com/fatedier/golib/net"

View File

@ -23,7 +23,7 @@ import (
"net/http/httputil" "net/http/httputil"
"strings" "strings"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
) )
const PluginHTTPS2HTTP = "https2http" const PluginHTTPS2HTTP = "https2http"

View File

@ -20,7 +20,7 @@ import (
"log" "log"
"net" "net"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
gosocks5 "github.com/armon/go-socks5" gosocks5 "github.com/armon/go-socks5"
) )

View File

@ -19,7 +19,7 @@ import (
"net" "net"
"net/http" "net/http"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View File

@ -19,8 +19,8 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/fatedier/frp/utils/util" "github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
) )
type Manager struct { type Manager struct {

View File

@ -15,7 +15,7 @@
package plugin package plugin
import ( import (
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
) )
type Request struct { type Request struct {

View File

@ -20,7 +20,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
"github.com/fatedier/golib/errors" "github.com/fatedier/golib/errors"
"github.com/fatedier/golib/pool" "github.com/fatedier/golib/pool"

View File

@ -24,7 +24,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
gnet "github.com/fatedier/golib/net" gnet "github.com/fatedier/golib/net"
kcp "github.com/fatedier/kcp-go" kcp "github.com/fatedier/kcp-go"
) )

View File

@ -22,8 +22,8 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/fatedier/frp/utils/util" "github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/frp/utils/vhost" "github.com/fatedier/frp/pkg/util/vhost"
) )
type HTTPConnectTCPMuxer struct { type HTTPConnectTCPMuxer struct {

View File

@ -25,8 +25,8 @@ import (
"strings" "strings"
"time" "time"
frpLog "github.com/fatedier/frp/utils/log" frpLog "github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/utils/util" "github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/golib/pool" "github.com/fatedier/golib/pool"
) )

View File

@ -19,8 +19,8 @@ import (
"io/ioutil" "io/ioutil"
"net/http" "net/http"
frpLog "github.com/fatedier/frp/utils/log" frpLog "github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/utils/version" "github.com/fatedier/frp/pkg/util/version"
) )
var ( var (

View File

@ -19,9 +19,9 @@ import (
"strings" "strings"
"time" "time"
"github.com/fatedier/frp/utils/log" "github.com/fatedier/frp/pkg/util/log"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/fatedier/frp/utils/xlog" "github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/golib/errors" "github.com/fatedier/golib/errors"
) )

View File

@ -15,7 +15,7 @@
package xlog package xlog
import ( import (
"github.com/fatedier/frp/utils/log" "github.com/fatedier/frp/pkg/util/log"
) )
// Logger is not thread safety for operations on prefix // Logger is not thread safety for operations on prefix

View File

@ -23,18 +23,18 @@ import (
"sync" "sync"
"time" "time"
"github.com/fatedier/frp/models/auth" "github.com/fatedier/frp/pkg/auth"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
frpErr "github.com/fatedier/frp/models/errors" frpErr "github.com/fatedier/frp/pkg/errors"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
plugin "github.com/fatedier/frp/models/plugin/server" plugin "github.com/fatedier/frp/pkg/plugin/server"
"github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/frp/pkg/util/version"
"github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/frp/server/controller" "github.com/fatedier/frp/server/controller"
"github.com/fatedier/frp/server/metrics" "github.com/fatedier/frp/server/metrics"
"github.com/fatedier/frp/server/proxy" "github.com/fatedier/frp/server/proxy"
"github.com/fatedier/frp/utils/util"
"github.com/fatedier/frp/utils/version"
"github.com/fatedier/frp/utils/xlog"
"github.com/fatedier/golib/control/shutdown" "github.com/fatedier/golib/control/shutdown"
"github.com/fatedier/golib/crypto" "github.com/fatedier/golib/crypto"

View File

@ -15,13 +15,13 @@
package controller package controller
import ( import (
"github.com/fatedier/frp/models/nathole" "github.com/fatedier/frp/pkg/nathole"
plugin "github.com/fatedier/frp/models/plugin/server" plugin "github.com/fatedier/frp/pkg/plugin/server"
"github.com/fatedier/frp/pkg/util/tcpmux"
"github.com/fatedier/frp/pkg/util/vhost"
"github.com/fatedier/frp/server/group" "github.com/fatedier/frp/server/group"
"github.com/fatedier/frp/server/ports" "github.com/fatedier/frp/server/ports"
"github.com/fatedier/frp/server/visitor" "github.com/fatedier/frp/server/visitor"
"github.com/fatedier/frp/utils/tcpmux"
"github.com/fatedier/frp/utils/vhost"
) )
// All resource managers and controllers // All resource managers and controllers

View File

@ -21,7 +21,7 @@ import (
"time" "time"
"github.com/fatedier/frp/assets" "github.com/fatedier/frp/assets"
frpNet "github.com/fatedier/frp/utils/net" frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/client_golang/prometheus/promhttp"

View File

@ -18,11 +18,11 @@ import (
"encoding/json" "encoding/json"
"net/http" "net/http"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/models/metrics/mem" "github.com/fatedier/frp/pkg/metrics/mem"
"github.com/fatedier/frp/utils/log" "github.com/fatedier/frp/pkg/util/log"
"github.com/fatedier/frp/utils/version" "github.com/fatedier/frp/pkg/util/version"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View File

@ -6,7 +6,7 @@ import (
"sync" "sync"
"sync/atomic" "sync/atomic"
"github.com/fatedier/frp/utils/vhost" "github.com/fatedier/frp/pkg/util/vhost"
) )
type HTTPGroupController struct { type HTTPGroupController struct {

View File

@ -20,9 +20,9 @@ import (
"net" "net"
"sync" "sync"
"github.com/fatedier/frp/models/consts" "github.com/fatedier/frp/pkg/consts"
"github.com/fatedier/frp/utils/tcpmux" "github.com/fatedier/frp/pkg/util/tcpmux"
"github.com/fatedier/frp/utils/vhost" "github.com/fatedier/frp/pkg/util/vhost"
gerr "github.com/fatedier/golib/errors" gerr "github.com/fatedier/golib/errors"
) )

View File

@ -19,11 +19,11 @@ import (
"net" "net"
"strings" "strings"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/frp/pkg/util/vhost"
"github.com/fatedier/frp/server/metrics" "github.com/fatedier/frp/server/metrics"
frpNet "github.com/fatedier/frp/utils/net"
"github.com/fatedier/frp/utils/util"
"github.com/fatedier/frp/utils/vhost"
frpIo "github.com/fatedier/golib/io" frpIo "github.com/fatedier/golib/io"
) )

View File

@ -17,9 +17,9 @@ package proxy
import ( import (
"strings" "strings"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/utils/util" "github.com/fatedier/frp/pkg/util/util"
"github.com/fatedier/frp/utils/vhost" "github.com/fatedier/frp/pkg/util/vhost"
) )
type HTTPSProxy struct { type HTTPSProxy struct {

View File

@ -22,13 +22,13 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
"github.com/fatedier/frp/models/msg" "github.com/fatedier/frp/pkg/msg"
plugin "github.com/fatedier/frp/models/plugin/server" plugin "github.com/fatedier/frp/pkg/plugin/server"
frpNet "github.com/fatedier/frp/pkg/util/net"
"github.com/fatedier/frp/pkg/util/xlog"
"github.com/fatedier/frp/server/controller" "github.com/fatedier/frp/server/controller"
"github.com/fatedier/frp/server/metrics" "github.com/fatedier/frp/server/metrics"
frpNet "github.com/fatedier/frp/utils/net"
"github.com/fatedier/frp/utils/xlog"
frpIo "github.com/fatedier/golib/io" frpIo "github.com/fatedier/golib/io"
) )

View File

@ -15,7 +15,7 @@
package proxy package proxy
import ( import (
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
) )
type STCPProxy struct { type STCPProxy struct {

View File

@ -15,7 +15,7 @@
package proxy package proxy
import ( import (
"github.com/fatedier/frp/models/config" "github.com/fatedier/frp/pkg/config"
) )
type SUDPProxy struct { type SUDPProxy struct {

Some files were not shown because too many files have changed in this diff Show More