http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 10 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 {
	tcp.Listener
	// contains filtered or unexported fields
}

Server is a wrapper of an HTTP server.

func NewServer

func NewServer(name string, tlsConfig *tls.Config) Server

NewServer returns a new server.

func (*Server) GracefulStop

func (s *Server) GracefulStop() error

GracefulStop does a graceful stop of the server.

func (*Server) Router

func (s *Server) Router() chi.Router

Router returns the server (chi-)router.

func (*Server) Start

func (s *Server) Start() error

Start the server.

func (*Server) Stop

func (s *Server) Stop() error

Stop the server.

Jump to

Keyboard shortcuts

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