outbound

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Receivers []*Receiver
}

type ExpiringReceiver

type ExpiringReceiver struct {
	*Receiver
	// contains filtered or unexported fields
}

func (*ExpiringReceiver) Expired

func (this *ExpiringReceiver) Expired() bool

type Factory added in v1.18.1

type Factory struct{}

func (*Factory) Create added in v1.18.1

func (this *Factory) Create(space app.Space, rawConfig interface{}, meta *proxy.OutboundHandlerMeta) (proxy.OutboundHandler, error)

func (*Factory) StreamCapability added in v1.18.1

func (this *Factory) StreamCapability() internet.StreamConnectionType

type Receiver

type Receiver struct {
	sync.RWMutex
	Destination v2net.Destination
	Accounts    []*protocol.User
}

func NewReceiver

func NewReceiver(dest v2net.Destination, users ...*protocol.User) *Receiver

func (*Receiver) AddUser

func (this *Receiver) AddUser(user *protocol.User)

func (*Receiver) HasUser

func (this *Receiver) HasUser(user *protocol.User) bool

func (*Receiver) PickUser

func (this *Receiver) PickUser() *protocol.User

type ReceiverManager

type ReceiverManager struct {
	// contains filtered or unexported fields
}

func NewReceiverManager

func NewReceiverManager(receivers []*Receiver) *ReceiverManager

func (*ReceiverManager) AddDetour

func (this *ReceiverManager) AddDetour(rec *Receiver, availableMin byte)

func (*ReceiverManager) PickReceiver

func (this *ReceiverManager) PickReceiver() *Receiver

type VMessOutboundHandler

type VMessOutboundHandler struct {
	// contains filtered or unexported fields
}

func (*VMessOutboundHandler) Dispatch

func (this *VMessOutboundHandler) Dispatch(target v2net.Destination, payload *alloc.Buffer, ray ray.OutboundRay) error

Jump to

Keyboard shortcuts

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