Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Close() error
- func (h *Handler) Dial(ctx context.Context, dest net.Destination) (internet.Connection, error)
- func (h *Handler) Dispatch(ctx context.Context, outboundRay ray.OutboundRay)
- func (h *Handler) GetOutbound() proxy.Outbound
- func (h *Handler) Start() error
- func (h *Handler) Tag() string
- type Manager
- func (m *Manager) AddHandler(ctx context.Context, handler core.OutboundHandler) error
- func (m *Manager) Close() error
- func (m *Manager) GetDefaultHandler() core.OutboundHandler
- func (m *Manager) GetHandler(tag string) core.OutboundHandler
- func (m *Manager) RemoveHandler(ctx context.Context, tag string) error
- func (m *Manager) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) Dial ¶
func (h *Handler) Dial(ctx context.Context, dest net.Destination) (internet.Connection, error)
Dial implements proxy.Dialer.Dial().
func (*Handler) Dispatch ¶
func (h *Handler) Dispatch(ctx context.Context, outboundRay ray.OutboundRay)
Dispatch implements proxy.Outbound.Dispatch.
func (*Handler) GetOutbound ¶
GetOutbound implements proxy.GetOutbound.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is to manage all outbound handlers.
func (*Manager) AddHandler ¶
AddHandler implements core.OutboundHandlerManager.
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 ¶
RemoveHandler implements core.OutboundHandlerManager.
Click to show internal directories.
Click to hide internal directories.