serversignals

package
v0.0.0-...-8909857 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*http.Server
	Logger           *zap.SugaredLogger
	ForceStopTimeout time.Duration
}

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) StartAndWaitSignalsThenShutdown

func (s *Server) StartAndWaitSignalsThenShutdown(ctx context.Context) error

func (*Server) WaitSignalsThenShutdown

func (s *Server) WaitSignalsThenShutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL