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 ¶
func (c *EarlyWebsocketConn) LazyHeadroom() bool
func (*EarlyWebsocketConn) LocalAddr ¶
func (c *EarlyWebsocketConn) LocalAddr() net.Addr
func (*EarlyWebsocketConn) NeedAdditionalReadDeadline ¶
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 ¶
func (c *EarlyWebsocketConn) Upstream() any
func (*EarlyWebsocketConn) WriteBuffer ¶
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, 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 ¶
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 ¶
func (c *WebsocketConn) SetReadDeadline(t time.Time) error
func (*WebsocketConn) SetWriteDeadline ¶
func (c *WebsocketConn) SetWriteDeadline(t time.Time) error
func (*WebsocketConn) Upstream ¶
func (c *WebsocketConn) Upstream() any
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) FrontHeadroom ¶
Click to show internal directories.
Click to hide internal directories.