Documentation ¶
Overview ¶
Package socketactivation provides conditional support for systemd socket activation.
By default, this package is disabled, and all functions are merely dummies. To enable, build like so:
go build -tags systemd
Index ¶
Constants ¶
View Source
const ( // Enabled allows consumers to check if support was enabled at compile // time. Enabled bool = enabled // ErrNotEnabled is returned when a caller attempts to call a function // that requires support for socket activation. ErrNotEnabled = err("socket activation was not enabled at compile time") )
Variables ¶
This section is empty.
Functions ¶
func CountListeners ¶
func CountListeners() int
CountListeners determines how many sockets have been passed.
When Enabled = false, this function always returns zero (0).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.