outbound

package
v3.18.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

Types

type Handler

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

func (*Handler) Close

func (h *Handler) Close() error

Close implements common.Closable.

func (*Handler) Dial

Dial implements proxy.Dialer.Dial().

func (*Handler) Dispatch

func (h *Handler) Dispatch(ctx context.Context, link *core.Link)

Dispatch implements proxy.Outbound.Dispatch.

func (*Handler) GetOutbound

func (h *Handler) GetOutbound() proxy.Outbound

GetOutbound implements proxy.GetOutbound.

func (*Handler) Start

func (h *Handler) Start() error

Start implements common.Runnable.

func (*Handler) Tag

func (h *Handler) Tag() string

Tag implements core.OutboundHandler.

type Manager

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

Manager is to manage all outbound handlers.

func New

func New(ctx context.Context, config *proxyman.OutboundConfig) (*Manager, error)

New creates a new Manager.

func (*Manager) AddHandler

func (m *Manager) AddHandler(ctx context.Context, handler core.OutboundHandler) error

AddHandler implements core.OutboundHandlerManager.

func (*Manager) Close

func (m *Manager) Close() error

Close implements core.Feature

func (*Manager) GetDefaultHandler

func (m *Manager) GetDefaultHandler() core.OutboundHandler

GetDefaultHandler implements core.OutboundHandlerManager.

func (*Manager) GetHandler

func (m *Manager) GetHandler(tag string) core.OutboundHandler

GetHandler implements core.OutboundHandlerManager.

func (*Manager) RemoveHandler

func (m *Manager) RemoveHandler(ctx context.Context, tag string) error

RemoveHandler implements core.OutboundHandlerManager.

func (*Manager) Start

func (m *Manager) Start() error

Start implements core.Feature

Jump to

Keyboard shortcuts

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