handlers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2025 License: MIT Imports: 15 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(address string, logger *logger.Logger, db *database.Database) (*Server, error)

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe() error

ServerUp starts the HTTP server and listens for incoming requests. It returns an error if the server fails to start.

func (*Server) ServerDown

func (srv *Server) ServerDown(ctx context.Context) error

ServerDown gracefully shuts down the HTTP server. It takes a context.Context argument to allow for cancellation of the shutdown process.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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