server

package
v0.0.0-...-70a9c39 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 17 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 New

func New(config *config.Config, logger *zap.Logger) *Server

func (*Server) Cleanup

func (s *Server) Cleanup() error

func (*Server) GetApp

func (s *Server) GetApp() *fiber.App

func (*Server) GetConfig

func (s *Server) GetConfig() *config.Config

func (*Server) GetDB

func (s *Server) GetDB() *database.Database

func (*Server) GetHandlers

func (s *Server) GetHandlers() *handlers.Handlers

func (*Server) GetLogger

func (s *Server) GetLogger() *zap.Logger

func (*Server) GetMiddleware

func (s *Server) GetMiddleware() *middleware.Middleware

func (*Server) GetServices

func (s *Server) GetServices() *services.Services

func (*Server) GetStorage

func (s *Server) GetStorage() *storage.StorageManager

func (*Server) SetupMiddleware

func (s *Server) SetupMiddleware()

SetupMiddleware configures all the middleware for the server

func (*Server) SetupRoutes

func (s *Server) SetupRoutes()

SetupRoutes configures all the routes for the server

func (*Server) Shutdown

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

func (*Server) Start

func (s *Server) Start(addr string) error

Directories

Path Synopsis
tests

Jump to

Keyboard shortcuts

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