Documentation ¶
Index ¶
- func NewClient(ctx context.Context, dialer N.Dialer, serverAddr M.Socksaddr, ...) (adapter.V2RayClientTransport, error)
- type Client
- type EarlyWebsocketConn
- func (c *EarlyWebsocketConn) Close() error
- func (c *EarlyWebsocketConn) LazyHeadroom() bool
- func (c *EarlyWebsocketConn) LocalAddr() net.Addr
- func (c *EarlyWebsocketConn) NeedAdditionalReadDeadline() bool
- func (c *EarlyWebsocketConn) Read(b []byte) (n int, err error)
- func (c *EarlyWebsocketConn) RemoteAddr() net.Addr
- func (c *EarlyWebsocketConn) SetDeadline(t time.Time) error
- func (c *EarlyWebsocketConn) SetReadDeadline(t time.Time) error
- func (c *EarlyWebsocketConn) SetWriteDeadline(t time.Time) error
- func (c *EarlyWebsocketConn) Upstream() any
- func (c *EarlyWebsocketConn) Write(b []byte) (n int, err error)
- func (c *EarlyWebsocketConn) WriteBuffer(buffer *buf.Buffer) error
- type Server
- type WebsocketConn
- func (c *WebsocketConn) Close() error
- func (c *WebsocketConn) NeedAdditionalReadDeadline() bool
- func (c *WebsocketConn) Read(b []byte) (n int, err error)
- func (c *WebsocketConn) RemoteAddr() net.Addr
- func (c *WebsocketConn) SetDeadline(t time.Time) error
- func (c *WebsocketConn) SetReadDeadline(t time.Time) error
- func (c *WebsocketConn) SetWriteDeadline(t time.Time) error
- func (c *WebsocketConn) Upstream() any
- func (c *WebsocketConn) Write(p []byte) (n int, err error)
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EarlyWebsocketConn ¶
type EarlyWebsocketConn struct { *Client // contains filtered or unexported fields }
func (*EarlyWebsocketConn) Close ¶
func (c *EarlyWebsocketConn) Close() error
func (*EarlyWebsocketConn) LazyHeadroom ¶ added in v1.1.0
func (c *EarlyWebsocketConn) LazyHeadroom() bool
func (*EarlyWebsocketConn) LocalAddr ¶
func (c *EarlyWebsocketConn) LocalAddr() net.Addr
func (*EarlyWebsocketConn) NeedAdditionalReadDeadline ¶ added in v1.2.5
func (c *EarlyWebsocketConn) NeedAdditionalReadDeadline() bool
func (*EarlyWebsocketConn) RemoteAddr ¶
func (c *EarlyWebsocketConn) RemoteAddr() net.Addr
func (*EarlyWebsocketConn) SetDeadline ¶
func (c *EarlyWebsocketConn) SetDeadline(t time.Time) error
func (*EarlyWebsocketConn) SetReadDeadline ¶
func (c *EarlyWebsocketConn) SetReadDeadline(t time.Time) error
func (*EarlyWebsocketConn) SetWriteDeadline ¶
func (c *EarlyWebsocketConn) SetWriteDeadline(t time.Time) error
func (*EarlyWebsocketConn) Upstream ¶ added in v1.1.0
func (c *EarlyWebsocketConn) Upstream() any
func (*EarlyWebsocketConn) WriteBuffer ¶ added in v1.1.0
func (c *EarlyWebsocketConn) WriteBuffer(buffer *buf.Buffer) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(ctx context.Context, logger logger.ContextLogger, options option.V2RayWebsocketOptions, tlsConfig tls.ServerConfig, handler adapter.V2RayServerTransportHandler) (*Server, error)
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(writer http.ResponseWriter, request *http.Request)
func (*Server) ServePacket ¶
func (s *Server) ServePacket(listener net.PacketConn) error
type WebsocketConn ¶
func (*WebsocketConn) Close ¶
func (c *WebsocketConn) Close() error
func (*WebsocketConn) NeedAdditionalReadDeadline ¶ added in v1.2.5
func (c *WebsocketConn) NeedAdditionalReadDeadline() bool
func (*WebsocketConn) RemoteAddr ¶
func (c *WebsocketConn) RemoteAddr() net.Addr
func (*WebsocketConn) SetDeadline ¶
func (c *WebsocketConn) SetDeadline(t time.Time) error
func (*WebsocketConn) SetReadDeadline ¶ added in v1.2.4
func (c *WebsocketConn) SetReadDeadline(t time.Time) error
func (*WebsocketConn) SetWriteDeadline ¶ added in v1.2.4
func (c *WebsocketConn) SetWriteDeadline(t time.Time) error
func (*WebsocketConn) Upstream ¶ added in v1.1.0
func (c *WebsocketConn) Upstream() any
type Writer ¶ added in v1.1.0
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) FrontHeadroom ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.