Versions in this module Expand all Collapse all v1 v1.0.0 Mar 23, 2021 Changes in this version + const LvlALERT + const LvlCRIT + const LvlDEBUG + const LvlEMERG + const LvlERROR + const LvlINFO + const LvlNOTICE + const LvlWARN + var ErrNoListener = errors.New("No Matching Listener") + func Exit(graceful bool) + func ExitGracefulWithTimeout(to time.Duration) + func Log(level int, msg string) + func Reload() + func ReplaceProcess(sig syscall.Signal) (int, error) + func Run(opts ...RunOption) (err error) + func SetLogger(f LoggerFunc) + type CleanupFunc func() error + type ConfigFunc func() ([]Server, []CleanupFunc, error) + type ConfigureFunc func() ([]srv.Server, []CleanupFunc, error) + type LingeringServer interface + Close func() error + Shutdown func(context.Context) error + type ListenerGroup []ListenerSpec + func (lg ListenerGroup) Listen() (listeners []net.Listener, err error) + type ListenerSpec struct + Addr string + ExtraFileTests []sd.FileTest + InheritOnly bool + ListenerFdName string + Net string + PrepareListener func(net.Listener) net.Listener + TLSConfig *tls.Config + type ListeningServer interface + Listen func() error + type LoggerFunc func(level int, message string) + type RunOption func(*runcfg) + func Configurator(f ConfigFunc) RunOption + func ControlSocket(name, path string) RunOption + func InstantiateServers(f ConfigureFunc) RunOption + func ReadyCallback(f func() error) RunOption + func SdNotifyOnReady(mainpid bool, status string) RunOption + func ShutdownTimeout(to time.Duration) RunOption + func SignalParentOnReady() RunOption + func SyncReload() RunOption + type Server interface + Serve func(context.Context) error