Documentation
¶
Overview ¶
Package outline implements the smart dialer outbound using the outline-sdk package. You can find more details here: https://github.com/Jigsaw-Code/outline-sdk/tree/v0.0.18/x/smart
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOutbound ¶
func NewOutbound(ctx context.Context, router adapter.Router, log log.ContextLogger, tag string, options option.OutboundOutlineOptions) (adapter.Outbound, error)
NewOutbound creates a proxyless outbond that uses the proxyless transport for dialing
func RegisterOutbound ¶
RegisterOutbound registers the outline outbound to the registry
Types ¶
type Outbound ¶
Outbound implements the smart dialer outbound from outline sdk
func (*Outbound) DialContext ¶
func (o *Outbound) DialContext(ctx context.Context, network string, destination metadata.Socksaddr) (net.Conn, error)
DialContext extracts the metadata domain, add the destination to the context and use the proxyless dialer for sending the request
func (*Outbound) ListenPacket ¶
func (o *Outbound) ListenPacket(ctx context.Context, destination metadata.Socksaddr) (net.PacketConn, error)
ListenPacket isn't implemented
Click to show internal directories.
Click to hide internal directories.