Versions in this module Expand all Collapse all v1 v1.0.0 May 9, 2024 Changes in this version + func Context() context.Context + func ListenAndServe(server ListenAndServer, gracePeriod time.Duration) + func ListenAndServeTLS(server *http.Server, certFile, keyFile string, gracePeriod time.Duration) + func OnInterrupt(work func()) + func Run(work func(ctx context.Context)) + func Tick(work func(), interval func() time.Duration) + func TickLiteral(work func(), interval time.Duration) + func WaitForGracefulShutdown() + type ListenAndServer interface + ListenAndServe func() error + type Shutdownable interface + Shutdown func(context.Context) error