mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
23 lines
436 B
Go
23 lines
436 B
Go
package snowflake_proxy
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
sdnotify "github.com/coreos/go-systemd/v22/daemon"
|
|
)
|
|
|
|
func sdnotifyReady() {
|
|
sdnotify.SdNotify(false, sdnotify.SdNotifyReady)
|
|
}
|
|
|
|
func sdnotifyStopping() {
|
|
sdnotify.SdNotify(false, sdnotify.SdNotifyStopping)
|
|
}
|
|
|
|
func sdnotifyStatus(status string) {
|
|
sdnotify.SdNotify(false, fmt.Sprintf("STATUS=%s", status))
|
|
}
|
|
|
|
func sdnotifyWatchdog() {
|
|
sdnotify.SdNotify(false, sdnotify.SdNotifyWatchdog)
|
|
}
|