This commit is contained in:
RPRX 2020-12-04 09:36:16 +08:00
parent ed8d6d743c
commit 16544c18ab
627 changed files with 3247 additions and 2635 deletions

View file

@ -7,10 +7,10 @@ import (
"sync"
"time"
"github.com/xtls/xray-core/v1/common"
"github.com/xtls/xray-core/v1/common/buf"
"github.com/xtls/xray-core/v1/common/signal"
"github.com/xtls/xray-core/v1/common/signal/done"
"github.com/xtls/xray-core/common"
"github.com/xtls/xray-core/common/buf"
"github.com/xtls/xray-core/common/signal"
"github.com/xtls/xray-core/common/signal/done"
)
type state byte

View file

@ -3,9 +3,9 @@ package pipe
import (
"context"
"github.com/xtls/xray-core/v1/common/signal"
"github.com/xtls/xray-core/v1/common/signal/done"
"github.com/xtls/xray-core/v1/features/policy"
"github.com/xtls/xray-core/common/signal"
"github.com/xtls/xray-core/common/signal/done"
"github.com/xtls/xray-core/features/policy"
)
// Option for creating new Pipes.

View file

@ -9,9 +9,9 @@ import (
"github.com/google/go-cmp/cmp"
"golang.org/x/sync/errgroup"
"github.com/xtls/xray-core/v1/common"
"github.com/xtls/xray-core/v1/common/buf"
. "github.com/xtls/xray-core/v1/transport/pipe"
"github.com/xtls/xray-core/common"
"github.com/xtls/xray-core/common/buf"
. "github.com/xtls/xray-core/transport/pipe"
)
func TestPipeReadWrite(t *testing.T) {

View file

@ -3,7 +3,7 @@ package pipe
import (
"time"
"github.com/xtls/xray-core/v1/common/buf"
"github.com/xtls/xray-core/common/buf"
)
// Reader is a buf.Reader that reads content from a pipe.

View file

@ -1,7 +1,7 @@
package pipe
import (
"github.com/xtls/xray-core/v1/common/buf"
"github.com/xtls/xray-core/common/buf"
)
// Writer is a buf.Writer that writes data into a pipe.