Documentation ¶
Index ¶
- func DetectHTTPHost(payload *buf.Buffer) v2net.Address
- type DefaultDispatcher
- func (v *DefaultDispatcher) DispatchToOutbound(session *proxy.SessionInfo) ray.InboundRay
- func (v *DefaultDispatcher) FilterPacketAndDispatch(destination v2net.Destination, link ray.OutboundRay, ...)
- func (v *DefaultDispatcher) FixDestination(payload *buf.Buffer, dest v2net.Destination) v2net.Destination
- func (v *DefaultDispatcher) Initialize(space app.Space) error
- func (v *DefaultDispatcher) Release()
- type DefaultDispatcherFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultDispatcher ¶
type DefaultDispatcher struct {
// contains filtered or unexported fields
}
func NewDefaultDispatcher ¶
func NewDefaultDispatcher(space app.Space) *DefaultDispatcher
func (*DefaultDispatcher) DispatchToOutbound ¶
func (v *DefaultDispatcher) DispatchToOutbound(session *proxy.SessionInfo) ray.InboundRay
func (*DefaultDispatcher) FilterPacketAndDispatch ¶
func (v *DefaultDispatcher) FilterPacketAndDispatch(destination v2net.Destination, link ray.OutboundRay, dispatcher proxy.OutboundHandler)
FilterPacketAndDispatch waits for a payload from source and starts dispatching. Private: Visible for testing.
func (*DefaultDispatcher) FixDestination ¶
func (v *DefaultDispatcher) FixDestination(payload *buf.Buffer, dest v2net.Destination) v2net.Destination
func (*DefaultDispatcher) Initialize ¶
func (v *DefaultDispatcher) Initialize(space app.Space) error
Private: Used by app.Space only.
func (*DefaultDispatcher) Release ¶
func (v *DefaultDispatcher) Release()
type DefaultDispatcherFactory ¶
type DefaultDispatcherFactory struct{}
func (DefaultDispatcherFactory) AppId ¶
func (v DefaultDispatcherFactory) AppId() app.ID
func (DefaultDispatcherFactory) Create ¶
func (v DefaultDispatcherFactory) Create(space app.Space, config interface{}) (app.Application, error)
Click to show internal directories.
Click to hide internal directories.