wireguard

package
v1.11.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOutbound

func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.WireGuardOutboundOptions) (adapter.Outbound, error)

func RegisterOutbound

func RegisterOutbound(registry *outbound.Registry)

Types

type Outbound

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

func (*Outbound) Close

func (w *Outbound) Close() error

func (*Outbound) DialContext

func (w *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (*Outbound) InterfaceUpdated

func (w *Outbound) InterfaceUpdated()

func (*Outbound) ListenPacket

func (w *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

func (*Outbound) NewConnection

func (w *Outbound) NewConnection(ctx context.Context, conn net.Conn, metadata adapter.InboundContext) error

TODO Deprecated

func (*Outbound) NewPacketConnection

func (w *Outbound) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata adapter.InboundContext) error

TODO Deprecated

func (*Outbound) PostStart

func (w *Outbound) PostStart() error

func (*Outbound) Start

func (w *Outbound) Start() error

Jump to

Keyboard shortcuts

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