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 ¶
func RegisterInboundConnectionHandlerFactory(name string, factory InboundConnectionHandlerFactory) error
func RegisterOutboundConnectionHandlerFactory ¶
func RegisterOutboundConnectionHandlerFactory(name string, factory OutboundConnectionHandlerFactory) error
Types ¶
type ConnectionConfig ¶
type InboundConnectionHandlerFactory ¶
type InboundConnectionHandlerFactory interface {
Create(vp *Point, config []byte) (InboundConnectionHandler, error)
}
type InboundRay ¶
type OutboundConnectionHandler ¶
type OutboundConnectionHandler interface {
Start(ray OutboundRay) error
}
type OutboundRay ¶
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
Point is an single server in V2Ray system.
func NewPoint ¶
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 ¶
func (p *Point) DispatchToOutbound(packet v2net.Packet) InboundRay
type PointConfig ¶
type PointConfig interface { Port() uint16 InboundConfig() ConnectionConfig OutboundConfig() ConnectionConfig }
type Ray ¶
Ray is an internal tranport channel bewteen inbound and outbound connection.
func (*Ray) InboundInput ¶
func (*Ray) InboundOutput ¶
func (*Ray) OutboundInput ¶
func (*Ray) OutboundOutput ¶
Directories
¶
Path | Synopsis |
---|---|
common
|
|
config
|
|
infra
|
|
conf
Module
|
|
conf/serial
Module
|
|
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.