Versions in this module Expand all Collapse all v0 v0.0.2 Jun 16, 2023 Changes in this version + const CaddyfileKeyAddress + const CaddyfileKeyEndpoint + const CaddyfileKeyKeyfile + const CaddyfileKeyPersistentKeepAlive + const CaddyfileKeyPreShared + const CaddyfileKeyPrivate + const CaddyfileKeyPublic + const ModuleName + var DefaultKeepAlive uint32 = 25 + type Listener struct + func (l *Listener) Accept() (net.Conn, error) + func (l *Listener) Addr() net.Addr + func (l *Listener) AppendCloser(fn func() error) + func (l *Listener) Close() error + func (l *Listener) SetError(err error) bool + type Module struct + Address string + Endpoint string + KeyFile *string + PersistentKeepAlive *uint32 + PreShared string + Private string + Public string + func (mod *Module) CaddyModule() caddy.ModuleInfo + func (mod *Module) Provision(caddy.Context) error + func (mod *Module) UnmarshalCaddyfile(d *caddyfile.Dispenser) error + func (mod *Module) Validate() error + func (mod *Module) Wireguard() (w *Wireguard, err error) + func (mod *Module) WrapListener(listener net.Listener) net.Listener + type Wireguard struct + Address wg.IPv4 + Endpoint wg.ApiPeerEndpoint + PersistentKeepAlive uint32 + PreShared wg.Key + Private wg.Key + Public wg.Key + func (mod *Wireguard) Validate() error + func (mod *Wireguard) WrapListener(listener net.Listener) (wrapped net.Listener)