httpd

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShutdownTimeout = time.Second * 5

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(addr string, h http.Handler) *Server

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Run

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

func (*Server) SetLogger

func (s *Server) SetLogger(l *zap.Logger)

func (*Server) Start

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

func (*Server) Wait

func (s *Server) Wait() error

Jump to

Keyboard shortcuts

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