impl

package
v2.13.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) Initialize

func (v *DefaultDispatcher) Initialize(space app.Space) error

Initialize initializes the dispatcher. Private: Used by app.Space only.

func (*DefaultDispatcher) Release

func (v *DefaultDispatcher) Release()

Release implements common.Releasable.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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL