Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) StartAndServe ¶
func (a *App) StartAndServe()
type Option ¶
type Option func(app *App)
func WithCallbackTimeout ¶
func WithShutDownTimeout ¶
func WithShutdownCallbacks ¶
func WithShutdownCallbacks(cbs ...ShutdownCallback) Option
func WithWaitTime ¶
type ShutdownCallback ¶
type SigHandler ¶
type SigHandler struct {
// contains filtered or unexported fields
}
func NewSigHandler ¶
func NewSigHandler(timeout time.Duration, callback func(), sigs ...os.Signal) *SigHandler
func (*SigHandler) Run ¶
func (s *SigHandler) Run(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.