routes

package
v0.0.0-...-905eacb Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewGinEngine

func GenerateNewGinEngine(logger *zap.Logger) *gin.Engine

GenerateNewGinEngine

  • it will return the gin engine instance
  • this function is responsible for creating a new gin engine instance
  • it will create a new gin engine instance and setup the routes
  • it will also add the ginzap middleware to log the requests and panics
  • it will also add the CORS middleware
  • it will return the gin engine instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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