Documentation
¶
Overview ¶
Package adapter implements Polyamide using wireguard-go.
Index ¶
- type Options
- type Transport
- func (t *Transport) Close() error
- func (t *Transport) ControlMTU(value polyamide.Peer, selected polyamide.Endpoint) (int, error)
- func (t *Transport) ListenPort() uint16
- func (t *Transport) Peers() []polyamide.PeerStats
- func (t *Transport) PrepareEndpoint(ctx context.Context, address string) (polyamide.Endpoint, error)
- func (t *Transport) PreparePeer(ctx context.Context, cfg polyamide.PeerConfig) (polyamide.Peer, error)
- func (t *Transport) RemovePeer(ctx context.Context, value polyamide.Peer) error
- func (t *Transport) SendControl(ctx context.Context, value polyamide.Peer, selected polyamide.Endpoint, ...) error
- func (t *Transport) SendPackets(ctx context.Context, packets []polyamide.OutboundPacket) error
- func (t *Transport) SetEndpoints(ctx context.Context, value polyamide.Peer, locators []polyamide.Endpoint) error
- func (t *Transport) SetHostMTU(mtu int)
- func (t *Transport) Start(ctx context.Context, hooks polyamide.Hooks) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func (*Transport) ControlMTU ¶
func (*Transport) ListenPort ¶
ListenPort reports the bound UDP port, or zero before Start.
func (*Transport) PrepareEndpoint ¶
func (*Transport) PreparePeer ¶
func (*Transport) RemovePeer ¶
func (*Transport) SendControl ¶
func (*Transport) SendPackets ¶
func (*Transport) SetEndpoints ¶
func (*Transport) SetHostMTU ¶
SetHostMTU passes the host MTU to the engine through its TUN event reader.
Click to show internal directories.
Click to hide internal directories.