Documentation
¶
Index ¶
- Constants
- Variables
- type Listener
- type Module
- 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
Constants ¶
View Source
const ( CaddyfileKeyPublic = "public" CaddyfileKeyPrivate = "private" CaddyfileKeyPersistentKeepAlive = "persistentKeepAlive" CaddyfileKeyEndpoint = "endpoint" CaddyfileKeyAddress = "address" CaddyfileKeyKeyfile = "keyfile" )
View Source
const ModuleName = "caddy.listeners.wireguard"
Variables ¶
View Source
var DefaultKeepAlive uint32 = 25
Functions ¶
This section is empty.
Types ¶
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func (*Listener) AppendCloser ¶
type Module ¶
type Module struct { Public string `json:"public,omitempty"` // server public key Private string `json:"private,omitempty"` // client private key KeyFile *string `json:"keyFile,omitempty"` // keyfile to fill the above fields PersistentKeepAlive *uint32 `json:"persistentKeepAlive,omitempty"` // default 25 if nil Endpoint string `json:"endpoint,omitempty"` // wireguard server endpoint Address string `json:"address,omitempty"` // Client IP in tunnel }
func (*Module) CaddyModule ¶
func (mod *Module) CaddyModule() caddy.ModuleInfo
func (*Module) UnmarshalCaddyfile ¶
Click to show internal directories.
Click to hide internal directories.