Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PortValue uint16 LogConfigValue *LogConfig InboundConfigValue *ConnectionConfig OutboundConfigValue *ConnectionConfig }
func (*Config) InboundConfig ¶
func (config *Config) InboundConfig() config.ConnectionConfig
func (*Config) OutboundConfig ¶
func (config *Config) OutboundConfig() config.ConnectionConfig
type ConnectionConfig ¶
type ConnectionConfig struct { ProtocolValue string SettingsValue interface{} }
func (*ConnectionConfig) Protocol ¶
func (config *ConnectionConfig) Protocol() string
func (*ConnectionConfig) Settings ¶
func (config *ConnectionConfig) Settings(config.Type) interface{}
type InboundConnectionHandler ¶
type InboundConnectionHandler struct { Data2Send []byte DataReturned *bytes.Buffer Port uint16 Dispatcher app.PacketDispatcher }
func (*InboundConnectionHandler) Communicate ¶
func (handler *InboundConnectionHandler) Communicate(packet v2net.Packet) error
func (*InboundConnectionHandler) Create ¶
func (handler *InboundConnectionHandler) Create(dispatcher app.PacketDispatcher, config interface{}) (proxy.InboundConnectionHandler, error)
func (*InboundConnectionHandler) Listen ¶
func (handler *InboundConnectionHandler) Listen(port uint16) error
type MockUserSet ¶
type OutboundConnectionHandler ¶
type OutboundConnectionHandler struct { Data2Send *bytes.Buffer Data2Return []byte Destination v2net.Destination }
func (*OutboundConnectionHandler) Create ¶
func (handler *OutboundConnectionHandler) Create(config interface{}) (proxy.OutboundConnectionHandler, error)
func (*OutboundConnectionHandler) Dispatch ¶
func (handler *OutboundConnectionHandler) Dispatch(packet v2net.Packet, ray ray.OutboundRay) error
Click to show internal directories.
Click to hide internal directories.