Documentation
¶
Index ¶
- func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig) (outbound.Handler, error)
- func ParseRandomIP(addr net.Address, prefix string) net.Address
- type Handler
- func (h *Handler) Close() error
- func (h *Handler) DestIpAddress() net.IP
- func (h *Handler) Dial(ctx context.Context, dest net.Destination) (stat.Connection, error)
- func (h *Handler) Dispatch(ctx context.Context, link *transport.Link)
- func (h *Handler) GetOutbound() proxy.Outbound
- func (h *Handler) ProxySettings() *serial.TypedMessage
- func (h *Handler) SenderSettings() *serial.TypedMessage
- func (h *Handler) SetOutboundGateway(ctx context.Context, ob *session.Outbound)
- func (h *Handler) Start() error
- func (h *Handler) Tag() string
- type Manager
- func (m *Manager) AddHandler(ctx context.Context, handler outbound.Handler) error
- func (m *Manager) Close() error
- func (m *Manager) GetDefaultHandler() outbound.Handler
- func (m *Manager) GetHandler(tag string) outbound.Handler
- func (m *Manager) ListHandlers(ctx context.Context) []outbound.Handler
- func (m *Manager) RemoveHandler(ctx context.Context, tag string) error
- func (m *Manager) Select(selectors []string) []string
- func (m *Manager) Start() error
- func (m *Manager) Type() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler creates a new Handler based on the given configuration.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements outbound.Handler.
func (*Handler) DestIpAddress ¶ added in v1.8.7
func (*Handler) Dial ¶
func (h *Handler) Dial(ctx context.Context, dest net.Destination) (stat.Connection, error)
Dial implements internet.Dialer.
func (*Handler) GetOutbound ¶
GetOutbound implements proxy.GetOutbound.
func (*Handler) ProxySettings ¶ added in v1.250608.0
func (h *Handler) ProxySettings() *serial.TypedMessage
ProxySettings implements outbound.Handler.
func (*Handler) SenderSettings ¶ added in v1.250608.0
func (h *Handler) SenderSettings() *serial.TypedMessage
SenderSettings implements outbound.Handler.
func (*Handler) SetOutboundGateway ¶ added in v1.250831.0
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is to manage all outbound handlers.
func (*Manager) AddHandler ¶
AddHandler implements outbound.Manager.
func (*Manager) GetDefaultHandler ¶
GetDefaultHandler implements outbound.Manager.
func (*Manager) GetHandler ¶
GetHandler implements outbound.Manager.
func (*Manager) ListHandlers ¶ added in v1.250608.0
ListHandlers implements outbound.Manager.
func (*Manager) RemoveHandler ¶
RemoveHandler implements outbound.Manager.
Click to show internal directories.
Click to hide internal directories.