http

package
v1.8.1-0...-100120b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 16 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 an HTTP server for serving error pages.

func NewServer

func NewServer(log *logger.Logger, readBufferSize uint) Server

NewServer creates a new HTTP server.

func (*Server) Register

func (s *Server) Register(cfg *config.Config) error

Register server handlers, middlewares, etc.

func (*Server) Start

func (s *Server) Start(ip string, port uint16) (err error)

Start server.

func (*Server) Stop

func (s *Server) Stop(timeout time.Duration) error

Stop server gracefully.

Directories

Path Synopsis
handlers
Package httptest provides utilities for (fast-)HTTP testing.
Package httptest provides utilities for (fast-)HTTP testing.
middleware

Jump to

Keyboard shortcuts

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