http

package
v0.0.0-...-7f9f730 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 7 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 {
	Listener net.Listener
	// contains filtered or unexported fields
}

Server wraps http.Server.

func (*Server) GracefulShutdown

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

GracefulShutdown will gracefully shutdown the server.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe will listen and serve on the server address. Blocks until the server is stopped.

Jump to

Keyboard shortcuts

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