Help us shape the future of Go! Take the 2026 Go Developer Survey

outline

package
v0.0.174 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

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

func RegisterOutbound(registry *outbound.Registry)

RegisterOutbound registers the outline outbound to the registry

Types

type Outbound

type Outbound struct {
	outbound.Adapter
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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