Versions in this module Expand all Collapse all v1 v1.0.0 May 29, 2019 Changes in this version + const NotifyUnsetEnv + const NotifyWithFds + const StatusNone + const StatusReady + const StatusReloading + const StatusStopping + const StatusWatchdog + const UnixSocketUnlinkPolicyAlways + const UnixSocketUnlinkPolicyFlock + const UnixSocketUnlinkPolicyNone + const UnixSocketUnlinkPolicySocket + var ErrNoSuchFdName = errors.New("No file with the requested name and no requested address") + var ErrSdNotifyNoSocket = errors.New("No systemd notify socket in environment") + func Cleanup() + func Export(sdname string, f interface{}) (err error) + func FileWith(sdname string, tests ...FileTest) (rfile *os.File, rname string, err error) + func Forget(f interface{}) (err error) + func InheritNamedListener(wantName string, tests ...FileTest) (l net.Listener, gotName string, err error) + func InheritNamedPacketConn(wantName string, tests ...FileTest) (l net.PacketConn, gotName string, err error) + func Listen(nett, laddr string) (net.Listener, error) + func ListenFdsWithNames() (count int, names []string, err error) + func ListenPacket(nett, laddr string) (net.PacketConn, error) + func ListenTCP(nett string, laddr *net.TCPAddr) (*net.TCPListener, error) + func ListenUDP(nett string, laddr *net.UDPAddr) (*net.UDPConn, error) + func ListenUnix(nett string, laddr *net.UnixAddr) (*net.UnixListener, error) + func ListenUnixgram(nett string, laddr *net.UnixAddr) (*net.UnixConn, error) + func NamedListenTCP(name, nett string, laddr *net.TCPAddr) (l *net.TCPListener, err error) + func NamedListenUDP(name, net string, laddr *net.UDPAddr) (*net.UDPConn, error) + func NamedListenUnix(name, nett string, laddr *net.UnixAddr) (l *net.UnixListener, err error) + func NamedListenUnixgram(name, nett string, laddr *net.UnixAddr) (l *net.UnixConn, err error) + func Notify(flags int, lines ...string) (err error) + func NotifyStatus(status int, message string) error + func ReplaceProcess(sig syscall.Signal) (int, error) + func ReplaceProcessEnv(sig syscall.Signal, env []string) (int, error) + func Reset() + func SetUnixSocketUnlinkPolicy(policy uint32) + func SignalParentTermination() error + func StartProcess(env []string) (int, error) + func WatchdogEnabled() (enabled bool, when time.Duration) + type FileTest func(*os.File) (bool, error) + func IsFifo(path string) FileTest + func IsListening(want bool) FileTest + func IsSoReusePort() FileTest + func IsSocket(family, sotype int, listening int) FileTest + func IsSocketInet(family int, sotype int, listening int, port uint16) FileTest + func IsSocketUnix(sotype int, listening int, path *string) FileTest + func IsTCPListener(addr *net.TCPAddr) FileTest + func IsUDPListener(addr *net.UDPAddr) FileTest + func IsUNIXListener(addr *net.UnixAddr) FileTest