http

package
v1.8.1-0...-ed8303a Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 21 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
}

func NewServer

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

func (*Server) Register

func (s *Server) Register(cfg *config.Config, templatePicker templatePicker, opt options.ErrorPage) error

Register server routes, middlewares, etc. Router docs: <https://github.com/fasthttp/router>

func (*Server) Start

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

Start server.

func (*Server) Stop

func (s *Server) Stop() error

Stop server.

Directories

Path Synopsis
handlers
metrics
Package metrics contains HTTP handler for application metrics (prometheus format) generation.
Package metrics contains HTTP handler for application metrics (prometheus format) generation.

Jump to

Keyboard shortcuts

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