http

package
v0.0.0-...-6b4541e Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 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
}

func NewServer

func NewServer(log *zap.Logger) Server

func (*Server) Register

func (s *Server) Register(
	cfg *config.Config,
	templatePicker templatePicker,
	defaultPageCode string,
	defaultHTTPCode uint16,
	showDetails bool,
) error

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

func (*Server) Start

func (s *Server) Start(ip string, port uint16) 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