outbound

package
v3.37.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Handler

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

func (*Handler) Close added in v3.8.1

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 added in v3.8.1

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

GetOutbound implements proxy.GetOutbound.

func (*Handler) Start added in v3.8.1

func (h *Handler) Start() error

Start implements common.Runnable.

func (*Handler) Tag added in v3.8.1

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 added in v3.8.1

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