server

package
v0.0.0-...-89144a2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomServerConfig

type CustomServerConfig struct {
	DB    *sqlx.DB
	MQURL string
}

type Server

type Server interface {
	// Start starts the server and listens for incoming requests
	Start()

	// Bootstrap initializes the server components
	Bootstrap()

	// GracefullyShutdown gracefully shuts down the server on interrupt
	GracefullyShutdown()

	// MountHandlers mounts all the HTTP handlers and routes
	MountHandlers()

	// MountWorkers mounts all the workers or background jobs
	MountWorkers()

	// Get Router returns the HTTP router
	GetRouter() any
}

func NewHttpServer

func NewHttpServer() Server

func NewHttpServerWithConfig

func NewHttpServerWithConfig(cfg CustomServerConfig) Server

Jump to

Keyboard shortcuts

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