mirror of https://github.com/v2ray/v2ray-core
fix interface
parent
5686566139
commit
d792faff70
|
@ -1,7 +1,6 @@
|
||||||
package ray
|
package ray
|
||||||
|
|
||||||
import "v2ray.com/core/common/buf"
|
import "v2ray.com/core/common/buf"
|
||||||
import "time"
|
|
||||||
|
|
||||||
// OutboundRay is a transport interface for outbound connections.
|
// OutboundRay is a transport interface for outbound connections.
|
||||||
type OutboundRay interface {
|
type OutboundRay interface {
|
||||||
|
@ -41,8 +40,8 @@ type RayStream interface {
|
||||||
|
|
||||||
type InputStream interface {
|
type InputStream interface {
|
||||||
buf.Reader
|
buf.Reader
|
||||||
|
buf.TimeoutReader
|
||||||
RayStream
|
RayStream
|
||||||
ReadTimeout(time.Duration) (*buf.Buffer, error)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type OutputStream interface {
|
type OutputStream interface {
|
||||||
|
|
Loading…
Reference in New Issue