Go API Documentation

github.com/caddyserver/caddy/v2/notify

Package notify provides facilities for notifying process managers of state changes, mainly for when running as a system service.

Package

Files: 1. Third party imports: 0. Imports from organisation: 0. Tests: 0. Benchmarks: 0.

Vars

Functions

func Error

Error is like Status, but sends systemd an error message instead, with an optional errno-style error number.

Uses: fmt.Sprintf, strings.ReplaceAll.

func Ready

Ready notifies systemd that caddy has finished its initialization routines.

func Reloading

Reloading notifies systemd that caddy is reloading its config.

func Status

Status sends systemd an updated status message.

func Stopping

Stopping notifies systemd that caddy is stopping.

Private functions

func sdNotify

References: net.DialUnix, net.UnixAddr.