outbound

package
v1.12.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2016 License: MIT Imports: 16 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 added in v1.9.1

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

func (*ExpiringReceiver) Expired added in v1.9.1

func (this *ExpiringReceiver) Expired() bool

type Receiver added in v1.1.2

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

func NewReceiver added in v1.9.1

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

func (*Receiver) AddUser added in v1.9.1

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

func (*Receiver) HasUser added in v1.9.1

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

func (*Receiver) PickUser added in v1.9.1

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

type ReceiverManager added in v1.1.2

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

func NewReceiverManager added in v1.1.2

func NewReceiverManager(receivers []*Receiver) *ReceiverManager

func (*ReceiverManager) AddDetour added in v1.9.1

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

func (*ReceiverManager) PickReceiver added in v1.1.2

func (this *ReceiverManager) PickReceiver() (v2net.Destination, *proto.User)

type VMessOutboundHandler added in v1.1.2

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

func (*VMessOutboundHandler) Dispatch added in v1.1.2

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