Versions in this module Expand all Collapse all v0 v0.0.2 Jun 16, 2023 v0.0.1 Jun 15, 2023 Changes in this version + const KeyPrivate + const KeyPsk + const KeyPublic + const ModuleName + var DefaultKeepAlive uint32 = 25 + func ListenFunc(ctx context.Context, network string, addr string, _ net.ListenConfig) (any, error) + type TCPListener struct + func (l *TCPListener) Accept() (net.Conn, error) + func (l *TCPListener) Addr() net.Addr + func (l *TCPListener) Close() error + type Wireguard struct + Address wg.IPv4 + Endpoint wg.ApiPeerEndpoint + KeyFile *string + PersistentKeepAlive *uint32 + PreShared wg.Key + Private wg.Key + Public wg.Key + func (mod *Wireguard) CaddyModule() caddy.ModuleInfo + func (mod *Wireguard) ListenTCP(network, addr string) (net.Listener, error) + func (mod *Wireguard) ListenUDP(network, addr string) (net.PacketConn, error) + func (mod *Wireguard) Provision(caddy.Context) error + func (mod *Wireguard) Start() error + func (mod *Wireguard) Stop() error + func (mod *Wireguard) Validate() error