http

package
v0.0.0-...-3b7b480 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package http defines the HTTP router interface and implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(engine *gin.Engine, mw *middleware.Manager) *Router

func (*Router) RegisterModules

func (r *Router) RegisterModules(v1Group *gin.RouterGroup, modules ...RouterRegister)

RegisterModules takes a slice of modules and lets them register themselves

type RouterRegister

type RouterRegister interface {
	Register(mw *middleware.Manager, router *gin.RouterGroup)
}

RouterRegister is the interface a module must implement

Directories

Path Synopsis
Package dto defines the Data Transfer Objects for the User entity.
Package dto defines the Data Transfer Objects for the User entity.
Package handlers contains HTTP handlers for restaurant-related endpoints.
Package handlers contains HTTP handlers for restaurant-related endpoints.
Package middleware provides middleware functions for handling HTTP requests in the application.
Package middleware provides middleware functions for handling HTTP requests in the application.

Jump to

Keyboard shortcuts

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