Documentation
¶
Index ¶
Constants ¶
View Source
const (
InfoTimeNotSync = "Please check the User ID in your vmess configuration, and make sure the time on your local and remote server are in sync."
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VMessInboundConfig ¶
type VMessInboundConfig struct {
AllowedClients []VMessUser `json:"clients"`
}
VMessInboundConfig is
type VMessInboundHandler ¶
type VMessInboundHandler struct {
// contains filtered or unexported fields
}
func NewVMessInboundHandler ¶
func NewVMessInboundHandler(vp *core.Point, clients user.UserSet) *VMessInboundHandler
func (*VMessInboundHandler) AcceptConnections ¶
func (handler *VMessInboundHandler) AcceptConnections(listener net.Listener) error
func (*VMessInboundHandler) HandleConnection ¶
func (handler *VMessInboundHandler) HandleConnection(connection net.Conn) error
type VMessInboundHandlerFactory ¶
type VMessInboundHandlerFactory struct {
}
type VMessOutboundConfig ¶
type VMessOutboundConfig struct {
VNextList []VNextConfig `json:"vnext"`
}
type VMessOutboundHandler ¶
type VMessOutboundHandler struct {
// contains filtered or unexported fields
}
func NewVMessOutboundHandler ¶
func NewVMessOutboundHandler(vp *core.Point, vNextList []VNextServer, firstPacket v2net.Packet) *VMessOutboundHandler
type VMessOutboundHandlerFactory ¶
type VMessOutboundHandlerFactory struct {
// contains filtered or unexported fields
}
func (*VMessOutboundHandlerFactory) Create ¶
func (factory *VMessOutboundHandlerFactory) Create(vp *core.Point, firstPacket v2net.Packet) (core.OutboundConnectionHandler, error)
func (*VMessOutboundHandlerFactory) Initialize ¶
func (factory *VMessOutboundHandlerFactory) Initialize(rawConfig []byte) error
type VMessUser ¶
type VMessUser struct {
Id string `json:"id"`
Email string `json:"email"`
}
VMessUser is an authenticated user account in VMess configuration.
type VNextConfig ¶
type VNextConfig struct {
Address string `json:"address"`
Port uint16 `json:"port"`
Users []VMessUser `json:"users"`
Network string `json:"network"`
}
func (VNextConfig) ToVNextServer ¶
func (config VNextConfig) ToVNextServer() VNextServer
type VNextServer ¶
type VNextServer struct {
Destination v2net.Destination // Address of VNext server
Users []user.User // User accounts for accessing VNext.
}
VNext is the next Point server in the connection chain.
Click to show internal directories.
Click to hide internal directories.