Documentation
¶
Overview ¶
Package core provides common definitions and functionalities of V2Ray.
Index ¶
- Constants
- func RegisterInboundConnectionHandlerFactory(name string, factory InboundConnectionHandlerFactory) error
- func RegisterOutboundConnectionHandlerFactory(name string, factory OutboundConnectionHandlerFactory) error
- type ConnectionConfig
- type InboundConnectionHandler
- type InboundConnectionHandlerFactory
- type InboundRay
- type OutboundConnectionHandler
- type OutboundConnectionHandlerFactory
- type OutboundRay
- type Point
- type PointConfig
- type Ray
- type UDPRay
Constants ¶
View Source
const ( Version = "0.6" Codename = "Post Apocalypse" Intro = "A stable and unbreakable connection for everyone." )
Variables ¶
This section is empty.
Functions ¶
func RegisterInboundConnectionHandlerFactory ¶ added in v0.6.1
func RegisterInboundConnectionHandlerFactory(name string, factory InboundConnectionHandlerFactory) error
func RegisterOutboundConnectionHandlerFactory ¶ added in v0.6.1
func RegisterOutboundConnectionHandlerFactory(name string, factory OutboundConnectionHandlerFactory) error
Types ¶
type ConnectionConfig ¶ added in v0.6.1
type InboundConnectionHandler ¶ added in v0.6.1
type InboundConnectionHandlerFactory ¶ added in v0.6.1
type InboundConnectionHandlerFactory interface {
Create(vp *Point, config []byte) (InboundConnectionHandler, error)
}
type InboundRay ¶ added in v0.6.1
type OutboundConnectionHandler ¶ added in v0.6.1
type OutboundConnectionHandler interface {
Start(ray OutboundRay) error
}
type OutboundConnectionHandlerFactory ¶ added in v0.6.1
type OutboundRay ¶ added in v0.6.1
type Point ¶ added in v0.6.1
type Point struct {
// contains filtered or unexported fields
}
Point is an single server in V2Ray system.
func NewPoint ¶ added in v0.6.1
func NewPoint(config PointConfig) (*Point, error)
NewPoint returns a new Point server based on given configuration. The server is not started at this point.
func (*Point) DispatchToOutbound ¶ added in v0.6.1
func (p *Point) DispatchToOutbound(packet v2net.Packet) InboundRay
type PointConfig ¶ added in v0.6.1
type PointConfig interface { Port() uint16 InboundConfig() ConnectionConfig OutboundConfig() ConnectionConfig }
type Ray ¶ added in v0.6.1
Ray is an internal tranport channel bewteen inbound and outbound connection.
func (*Ray) InboundInput ¶ added in v0.6.1
func (*Ray) InboundOutput ¶ added in v0.6.1
func (*Ray) OutboundInput ¶ added in v0.6.1
func (*Ray) OutboundOutput ¶ added in v0.6.1
Directories
¶
Path | Synopsis |
---|---|
common
|
|
config
|
|
proxy
|
|
vmess/protocol
Package vmess contains protocol definition, io lib for VMess.
|
Package vmess contains protocol definition, io lib for VMess. |
release
|
|
testing
|
|
Click to show internal directories.
Click to hide internal directories.