Documentation
¶
Index ¶
- func NewApoxy4To6Prefix(projectID uuid.UUID, endpoint string) netip.Prefix
- type IPAM
- type TunnelOption
- func WithCertPath(path string) TunnelOption
- func WithIPAM(ipam IPAM) TunnelOption
- func WithKeyPath(path string) TunnelOption
- func WithLocalAddr(prefix netip.Prefix) TunnelOption
- func WithProxyAddr(addr string) TunnelOption
- func WithTUNName(name string) TunnelOption
- func WithULAPrefix(prefix netip.Prefix) TunnelOption
- type TunnelServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPAM ¶ added in v0.8.3
type IPAM interface {
// Allocate allocates an IP address for a peer.
Allocate(r *http.Request) netip.Prefix
// Release releases an IP address for a peer. No-op if the address is not allocated
// (returns nil).
Release(peerPrefix netip.Prefix) error
}
func NewRandomULA ¶ added in v0.8.3
func NewRandomULA() IPAM
type TunnelOption ¶ added in v0.8.3
type TunnelOption func(*tunnelOptions)
func WithCertPath ¶ added in v0.8.3
func WithCertPath(path string) TunnelOption
WithCertPath sets the path to the TLS certificate.
func WithIPAM ¶ added in v0.8.3
func WithIPAM(ipam IPAM) TunnelOption
WithIPAM sets the IPAM to use.
func WithKeyPath ¶ added in v0.8.3
func WithKeyPath(path string) TunnelOption
WithKeyPath sets the path to the TLS key.
func WithLocalAddr ¶ added in v0.8.3
func WithLocalAddr(prefix netip.Prefix) TunnelOption
WithLocalAddr sets the local address prefix.
func WithProxyAddr ¶ added in v0.8.3
func WithProxyAddr(addr string) TunnelOption
WithProxyAddr sets the address to bind the proxy to.
func WithTUNName ¶ added in v0.8.3
func WithTUNName(name string) TunnelOption
WithTUNName sets the name of the TUN interface.
func WithULAPrefix ¶ added in v0.8.3
func WithULAPrefix(prefix netip.Prefix) TunnelOption
WithULAPrefix sets the Unique Local Address prefix.
type TunnelServer ¶ added in v0.8.3
func NewTunnelServer ¶ added in v0.8.3
func NewTunnelServer(opts ...TunnelOption) *TunnelServer
NewTunnelServer creates a new server proxy that routes traffic via QUIC tunnels.
Click to show internal directories.
Click to hide internal directories.