router

package
v0.0.0-...-72b4f51 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouterWithMiddleware

func CreateRouterWithMiddleware() (router *gin.Engine)

CreateRouterWithMiddleware is a function that will create a new gin router and set up the general middleware that we need for the application

func InitCall

func InitCall() (cc call.Call)

InitCall is a function that will set up the call context for the application using the ENV and REGION environment variables

func SetCorsOnRouter

func SetCorsOnRouter(r *gin.Engine)

SetCorsOnRouter sets up the cors configuration on the router

func SetupTimeoutMiddleware

func SetupTimeoutMiddleware(r *gin.Engine)

SetupTimeoutMiddleware sets up the timeout middleware functionality on the router

func StartRouter

func StartRouter(r *gin.Engine, cc call.Call)

StartRouter starts the router on port 8080

Types

This section is empty.

Jump to

Keyboard shortcuts

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