http

package
v0.0.0-...-96478b5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 5 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 {
	// contains filtered or unexported fields
}

Server is a basic HTTP http.

func NewServer

func NewServer(bind string, shutdownTimeout time.Duration, handler http.Handler) *Server

NewServer returns a new Server.

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) (err error)

Serve binds the http to it's bind address and starts serving requests.

Jump to

Keyboard shortcuts

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