web

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHandlersInstance added in v0.2.8

func GetHandlersInstance() (*handlers.Handlers, bool)

GetHandlersInstance returns the global handlers instance and a boolean indicating if it's initialized

Types

type Handler

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

Handler is a wrapper around the handlers package

func NewHandler

func NewHandler(database *db.DB, scheduler *scheduler.Scheduler, jwtSecret string, dbPath string, backupDir string, cfg *config.Config) (*Handler, error)

NewHandler creates a new Handler instance that delegates to the handlers package

func (*Handler) InitializeRoutes

func (h *Handler) InitializeRoutes(router *gin.Engine)

InitializeRoutes delegates route registration to the handlers package

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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