outbound

package
v5.57.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 24 Imported by: 11 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (outbound.Handler, error)

NewHandler create a new Handler based on the given configuration.

Types

type Handler

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

Handler is an implements of outbound.Handler.

func (*Handler) Address

func (h *Handler) Address() net.Address

Address implements internet.Dialer.

func (*Handler) Close

func (h *Handler) Close() error

Close implements common.Closable.

func (*Handler) Dial

Dial implements internet.Dialer.

func (*Handler) Dispatch

func (h *Handler) Dispatch(ctx context.Context, link *transport.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 outbound.Handler.

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 outbound.Handler) error

AddHandler implements outbound.Manager.

func (*Manager) Close

func (m *Manager) Close() error

Close implements core.Feature

func (*Manager) GetDefaultHandler

func (m *Manager) GetDefaultHandler() outbound.Handler

GetDefaultHandler implements outbound.Manager.

func (*Manager) GetHandler

func (m *Manager) GetHandler(tag string) outbound.Handler

GetHandler implements outbound.Manager.

func (*Manager) RemoveHandler

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

RemoveHandler implements outbound.Manager.

func (*Manager) Select

func (m *Manager) Select(selectors []string) []string

Select implements outbound.HandlerSelector.

func (*Manager) Start

func (m *Manager) Start() error

Start implements core.Feature

func (*Manager) Type

func (m *Manager) Type() interface{}

Type implements common.HasType.

Jump to

Keyboard shortcuts

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