Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router interface {
// Handler returns the HTTP handler
Handler() *gin.Engine
// Config returns the current configuration
Config() domain.Config
}
Router defines the interface for the REST router
func NewRouter ¶
func NewRouter( config domain.Config, logger logging.Logger, entryHandler *handler.EntryHandler, translationHandler *handler.TranslationHandler, userHandler *handler.UserHandler, authMiddleware middleware.AuthMiddleware, ) Router
NewRouter creates a new Router instance
func NewRouterWithErrorHandling ¶
func NewRouterWithErrorHandling( config domain.Config, logger logging.Logger, entryHandler handler.EntryHandlerInterface, translationHandler handler.TranslationHandlerInterface, userHandler handler.UserHandlerInterface, authMiddleware middleware.AuthMiddleware, ) Router
NewRouterWithErrorHandling creates a Router with improved error handling and security enhancements
Click to show internal directories.
Click to hide internal directories.