mv non-core components to extended repo

This commit is contained in:
ginuerzh
2022-03-14 17:43:37 +08:00
parent bfc1f8472c
commit 5c5af49b0e
279 changed files with 608 additions and 14301 deletions

View File

@ -1,7 +1,7 @@
package registry
import (
"github.com/go-gost/gost/pkg/admission"
"github.com/go-gost/gost/v3/pkg/admission"
)
type admissionRegistry struct {

View File

@ -1,7 +1,7 @@
package registry
import (
"github.com/go-gost/gost/pkg/auth"
"github.com/go-gost/gost/v3/pkg/auth"
)
type autherRegistry struct {

View File

@ -1,7 +1,7 @@
package registry
import (
"github.com/go-gost/gost/pkg/bypass"
"github.com/go-gost/gost/v3/pkg/bypass"
)
type bypassRegistry struct {

View File

@ -1,7 +1,7 @@
package registry
import (
"github.com/go-gost/gost/pkg/chain"
"github.com/go-gost/gost/v3/pkg/chain"
)
type chainRegistry struct {

View File

@ -1,8 +1,8 @@
package registry
import (
"github.com/go-gost/gost/pkg/connector"
"github.com/go-gost/gost/pkg/logger"
"github.com/go-gost/gost/v3/pkg/connector"
"github.com/go-gost/gost/v3/pkg/logger"
)
type NewConnector func(opts ...connector.Option) connector.Connector

View File

@ -1,8 +1,8 @@
package registry
import (
"github.com/go-gost/gost/pkg/dialer"
"github.com/go-gost/gost/pkg/logger"
"github.com/go-gost/gost/v3/pkg/dialer"
"github.com/go-gost/gost/v3/pkg/logger"
)
type NewDialer func(opts ...dialer.Option) dialer.Dialer

View File

@ -1,8 +1,8 @@
package registry
import (
"github.com/go-gost/gost/pkg/handler"
"github.com/go-gost/gost/pkg/logger"
"github.com/go-gost/gost/v3/pkg/handler"
"github.com/go-gost/gost/v3/pkg/logger"
)
type NewHandler func(opts ...handler.Option) handler.Handler

View File

@ -3,7 +3,7 @@ package registry
import (
"net"
"github.com/go-gost/gost/pkg/hosts"
"github.com/go-gost/gost/v3/pkg/hosts"
)
type hostsRegistry struct {

View File

@ -1,8 +1,8 @@
package registry
import (
"github.com/go-gost/gost/pkg/listener"
"github.com/go-gost/gost/pkg/logger"
"github.com/go-gost/gost/v3/pkg/listener"
"github.com/go-gost/gost/v3/pkg/logger"
)
type NewListener func(opts ...listener.Option) listener.Listener

View File

@ -4,13 +4,13 @@ import (
"errors"
"sync"
"github.com/go-gost/gost/pkg/admission"
"github.com/go-gost/gost/pkg/auth"
"github.com/go-gost/gost/pkg/bypass"
"github.com/go-gost/gost/pkg/chain"
"github.com/go-gost/gost/pkg/hosts"
"github.com/go-gost/gost/pkg/resolver"
"github.com/go-gost/gost/pkg/service"
"github.com/go-gost/gost/v3/pkg/admission"
"github.com/go-gost/gost/v3/pkg/auth"
"github.com/go-gost/gost/v3/pkg/bypass"
"github.com/go-gost/gost/v3/pkg/chain"
"github.com/go-gost/gost/v3/pkg/hosts"
"github.com/go-gost/gost/v3/pkg/resolver"
"github.com/go-gost/gost/v3/pkg/service"
)
var (

View File

@ -4,7 +4,7 @@ import (
"context"
"net"
"github.com/go-gost/gost/pkg/resolver"
"github.com/go-gost/gost/v3/pkg/resolver"
)
type resolverRegistry struct {

View File

@ -1,7 +1,7 @@
package registry
import (
"github.com/go-gost/gost/pkg/service"
"github.com/go-gost/gost/v3/pkg/service"
)
type serviceRegistry struct {