server

package
v0.0.0-...-e4b64fd Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPprof

func RegisterPprof(e *echo.Echo, prefixOptions ...string)

RegisterPprof register a middleware for net/http/pprof.

Types

type Server

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

Server runs an http server.

func NewServer

func NewServer(serverConfig *config.ServerConfig, fh *handler.FibonacciHandler) *Server

NewServer server instantiation for endpoint exposure and middleware configuration.

func (*Server) Start

func (s *Server) Start() error

Start runs an http server.

func (*Server) Stop

func (s *Server) Stop() error

Stop stops an http server.

Jump to

Keyboard shortcuts

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