infrastructure

package
v0.0.0-...-b858eff Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv()

LoadEnv loads environment variables from .env file

Types

type Database

type Database struct {
	DB *gorm.DB
}

Database struct

func NewDatabase

func NewDatabase() Database

NewDatabase : intializes and returns mysql db

type GinRouter

type GinRouter struct {
	Gin *gin.Engine
}

GinRouter -> Gin Router

func NewGinRouter

func NewGinRouter() GinRouter

NewGinRouter all the routes are defined here

Jump to

Keyboard shortcuts

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