httpserver

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v1.0.0

type Options struct {
	Port            *string
	ReadTimeout     *time.Duration
	WriteTimeout    *time.Duration
	ShutDownTimeout *time.Duration
}

type Server

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

func New

func New(handler http.Handler, o *Options) *Server

func (*Server) Notify

func (s *Server) Notify() <-chan error

func (*Server) Shutdown

func (s *Server) Shutdown() error

Jump to

Keyboard shortcuts

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