Versions in this module Expand all Collapse all v0 v0.0.3 Jun 7, 2021 Changes in this version + const EnvNumFD + const EnvOldWorkerPid + const EnvWorker + const ValWorker + var ErrNoServers = errors.New("no servers") + var StartedAt time.Time + func IsMaster() bool + func IsWorker() bool + func ListenAndServe(addr string, handler http.Handler) error + type Option func(o *option) + func WithReloadSignals(sigs []syscall.Signal) Option + func WithStopSignals(sigs []syscall.Signal) Option + func WithStopTimeout(timeout time.Duration) Option + func WithWatchInterval(timeout time.Duration) Option + type Server struct + func NewServer(opts ...Option) *Server + func (s *Server) Register(addr string, handler http.Handler) + func (s *Server) RegisterUnix(addr string, handler http.Handler) + func (s *Server) Reload() error + func (s *Server) Run() error