Documentation ¶
Index ¶
- type DialContextFn
- type NoisyNetwork
- func (n *NoisyNetwork) Close() error
- func (n *NoisyNetwork) Dial(network, address string) (net.Conn, error)
- func (n *NoisyNetwork) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (n *NoisyNetwork) Listen(network, address string) (net.Listener, error)
- func (n *NoisyNetwork) ListenPacket(network, address string) (net.PacketConn, error)
- func (n *NoisyNetwork) LookupHostContext(ctx context.Context, host string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialContextFn ¶ added in v0.5.0
type NoisyNetwork ¶ added in v0.7.0
type NoisyNetwork struct {
// contains filtered or unexported fields
}
NoisyNetworkwork is a userspace WireGuard peer that exposes Dial() and Listen() methods compatible with the net package.
func NewNoisyNetwork ¶ added in v0.7.0
func (*NoisyNetwork) Close ¶ added in v0.7.0
func (n *NoisyNetwork) Close() error
Close closes the network and releases any resources associated with it.
func (*NoisyNetwork) Dial ¶ added in v0.7.0
func (n *NoisyNetwork) Dial(network, address string) (net.Conn, error)
Dial creates a network connection.
func (*NoisyNetwork) DialContext ¶ added in v0.7.0
DialContext creates a network connection with a context.
func (*NoisyNetwork) Listen ¶ added in v0.7.0
func (n *NoisyNetwork) Listen(network, address string) (net.Listener, error)
Listen creates a network listener.
func (*NoisyNetwork) ListenPacket ¶ added in v0.7.0
func (n *NoisyNetwork) ListenPacket(network, address string) (net.PacketConn, error)
ListenPacket creates a network packet listener.
func (*NoisyNetwork) LookupHostContext ¶ added in v0.7.0
LookupHost resolves host names (encoded public keys) to IP addresses.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
conn
Package conn implements WireGuard's network connections.
|
Package conn implements WireGuard's network connections. |
replay
Package replay implements an efficient anti-replay algorithm as specified in RFC 6479.
|
Package replay implements an efficient anti-replay algorithm as specified in RFC 6479. |
Click to show internal directories.
Click to hide internal directories.