Documentation
¶
Overview ¶
Package sdnotify provides methods for sending notifications to systemd
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSocket = fmt.Errorf("NOTIFY_SOCKET is empty") ErrNotConnected = fmt.Errorf("Not connected to socket") )
Functions ¶
func Connect ¶
func Connect() error
Connect connects systemd to socket
Example ¶
err := Connect() if err != nil { panic(err.Error()) } Status("Loading data %d%%", 50) Ready()
Output:
func ExtendTimeout ¶
ExtendTimeout sends EXTEND_TIMEOUT_USEC message to systemd
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.