Documentation ¶
Overview ¶
Package proxy contains all proxies used by V2Ray.
Index ¶
Constants ¶
View Source
const ( HandlerStateStopped = HandlerState(0) HandlerStateRunning = HandlerState(1) )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type InboundHandler ¶ added in v1.9.1
type InboundHandler interface { // Listen starts a InboundHandler. Start() error // Close stops the handler to accepting anymore inbound connections. Close() // Port returns the port that the handler is listening on. Port() v2net.Port }
An InboundHandler handles inbound network connections to V2Ray.
type InboundHandlerMeta ¶ added in v1.17.1
type OutboundHandler ¶ added in v1.9.1
type OutboundHandler interface { // Dispatch sends one or more Packets to its destination. Dispatch(destination v2net.Destination, payload *alloc.Buffer, ray ray.OutboundRay) error }
An OutboundHandler handles outbound network connection for V2Ray.
type OutboundHandlerMeta ¶ added in v1.17.1
type OutboundHandlerMeta struct { Tag string Address v2net.Address StreamSettings *internet.StreamSettings }
type SessionInfo ¶ added in v1.24.1
type SessionInfo struct { Source v2net.Destination Destination v2net.Destination User *protocol.User }
Directories ¶
Path | Synopsis |
---|---|
Package freedom is a generated protocol buffer package.
|
Package freedom is a generated protocol buffer package. |
Package http is a generated protocol buffer package.
|
Package http is a generated protocol buffer package. |
Package shadowsocks is a generated protocol buffer package.
|
Package shadowsocks is a generated protocol buffer package. |
Package socks is a generated protocol buffer package.
|
Package socks is a generated protocol buffer package. |
Package vmess is a generated protocol buffer package.
|
Package vmess is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.