server

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 10 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 handles HTTP server lifecycle and configuration

func New

func New(lc fx.Lifecycle, logger logging.Logger, cfg *config.Config, e *echo.Echo) *Server

New creates a new server instance with the provided dependencies

func (*Server) Echo

func (s *Server) Echo() *echo.Echo

Echo returns the underlying echo instance

func (*Server) Start

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

Start initializes and starts the HTTP server

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop gracefully shuts down the HTTP server

Jump to

Keyboard shortcuts

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