Documentation ¶
Overview ¶
Package point is a shell of V2Ray to run on various of systems. Point server is a full functionality proxying system. It consists of an inbound and an outbound connection, as well as any number of inbound and outbound detours. It provides a way internally to route network packets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
BadConfiguration = errors.New("Bad configuration.")
)
Functions ¶
This section is empty.
Types ¶
type ConnectionConfig ¶
type ConnectionConfig interface { Protocol() string Settings() interface{} }
type DnsConfig ¶
type DnsConfig interface { Enabled() bool Settings() dns.CacheConfig }
type InboundConnectionHandlerWithPort ¶
type InboundConnectionHandlerWithPort struct {
// contains filtered or unexported fields
}
type InboundDetourConfig ¶
type InboundDetourHandler ¶
type InboundDetourHandler struct {
// contains filtered or unexported fields
}
Handler for inbound detour connections.
func (*InboundDetourHandler) Initialize ¶
func (this *InboundDetourHandler) Initialize() error
func (*InboundDetourHandler) Start ¶
func (this *InboundDetourHandler) Start() error
Starts the inbound connection handler.
type OutboundDetourConfig ¶
type Point ¶
type Point struct {
// contains filtered or unexported fields
}
Point shell of V2Ray.
func NewPoint ¶
func NewPoint(pConfig PointConfig) (*Point, error)
NewPoint returns a new Point server based on given configuration. The server is not started at this point.
func (*Point) DispatchToOutbound ¶
Dispatches a Packet to an OutboundConnection. The packet will be passed through the router (if configured), and then sent to an outbound connection with matching tag.
type PointConfig ¶
type PointConfig interface { Port() v2net.Port LogConfig() LogConfig RouterConfig() router.Config InboundConfig() ConnectionConfig OutboundConfig() ConnectionConfig InboundDetours() []InboundDetourConfig OutboundDetours() []OutboundDetourConfig }