http

package
v0.0.0-...-aea7a5c Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrServerStarting represents an error when starting the server
	ErrServerStarting = fmt.Errorf("error starting server")

	// ErrServerStopping represents an error when stopping the server
	ErrServerStopping = fmt.Errorf("error stopping server")
)

Functions

This section is empty.

Types

type Server

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

Server represents a HTTP server

func NewServer

func NewServer(listenAddress string, handler *echo.Echo, logger repository.Logger) *Server

NewServer creates a new server

func (*Server) Start

func (s *Server) Start(ctx context.Context) (err error)

Start starts the server

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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